Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1019268 // mixStereoShortArrayToMono

JavaX fragment (include)

static short[] mixStereoShortArrayToMono(short[] stereo) {
  int n = l(stereo)/2;
  short[] mono = new short[n];
  for i to n:
    mono[i] = avgShort(stereo[i], stereo[i+1]);
  ret mono;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019268
Snippet name: mixStereoShortArrayToMono
Eternal ID of this version: #1019268/1
Text MD5: 36fc7aa2b7fbb5f3bb1060e5f7e08b0b
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-28 18:08:08
Source code size: 194 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 353 / 385
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)