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

11
LINES

< > BotCompany Repo | #1019265 // spectro_clipFromMonoInputStream

JavaX fragment (include) [tags: use-pretranspiled]

Uses 343K of libraries. Click here for Pure Java version (3081L/17K).

!include once #1018630 // Spectro Edit

// InputStream must supply big-endian 44.1kHz 16 bit mono samples
static Clip spectro_clipFromMonoInputStream(InputStream in, int overlap default (Int) get(Clip.class, 'DEFAULT_OVERLAP)) {
  int frameSize = cast get(Clip.class, 'DEFAULT_FRAME_SIZE);
  ret spectro_clipFromMonoInputStream(in, frameSize, overlap);
}

static Clip spectro_clipFromMonoInputStream(InputStream in, int frameSize, int overlap) ctex {
  ret newInstance(Clip.class, "anonymous clip", in, frameSize, overlap);
}

Author comment

Began life as a copy of #1018633

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: #1019265
Snippet name: spectro_clipFromMonoInputStream
Eternal ID of this version: #1019265/8
Text MD5: 3b5bded107c3893bcf99b8d7780fbadc
Transpilation MD5: 7ebcfba83c8c3dfceb1b3fc05758ed19
Author: stefan
Category: javax / audio analysis
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-24 07:01:16
Source code size: 537 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 480
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025071 - spectro_clipFromMonoShortArray