-
... l = true| if( bool ) { ^this.postln }; } isFile { ^PathName( this ).isFile; } isSoundFile { var sf; if( this.isFile ) { sf = SoundFile.new; if( sf.openRead( this.standardizePath ) ) { sf.close; ^true } { ^false }; } { ^false } } isFolder { ...
-
... Idx * 2] = sample; data[(sampleIdx * 2) + 1] = sample; lastFreq = freq; }; sf = SoundFile.new; sf.numChannels = 2; sf.sampleRate = sr; sf.headerFormat = "WAV"; sf.sampleFormat = "int16"; ok = sf.openWrite(outPath); if(ok.not) { ("SAVE SELEC ...
-
... s might need open and closed samples). Here, give an array listing paths to the soundfile(s). If you're using only one sample, you still have to wrap the path in an array: ["sounds/a11wlk01.wav"]. bufCoords: By default, the whole of each so ...
-
... s might need open and closed samples). Here, give an array listing paths to the soundfile(s). If you're using only one sample, you still have to wrap the path in an array: ["sounds/a11wlk01.wav"]. bufCoords: By default, the whole of each so ...
-
... Array}); messages = []; test = true; // complettion = []; path.notNil.if({ sf = SoundFile.new(path); test = sf.openRead; test.if({ numChannels = sf.numChannels; channels.notNil.if({ (channels.size < numChannels).if({ numChannels = channels. ...
-
... us s, \addToHead); }); },{ synthList[i].free; synthList[i] = nil; }); }); ); // soundfiles sfdropDownList.add(GUI.popUpMenu.new(win,Rect(120+(virIndex+i*rowspace), 135+lowRow , 100, 18)) .items_([]) // was sndfiles, but this is loaded later ...
-
... t = s; s.options.memSize = 8192 * 32; s.reboot; s.scope; s.freqscope; ) // load soundfile into buffer // allocate buffer for zero crossings ( p = Platform .resourceDir +/+ "sounds/a11wlk01.wav" ; b = Buffer .read(s, p); z = Buffer .alloc(s, ...
-
... e.exists(Atk.systemSoundsDir), { "Atk.systemSoundsDir exists, will not download soundfiles".warn; this.halt; }, { this.createSystemSupportDir; }); }, { if(File.exists(Atk.userSoundsDir), { "Atk.userSoundsDir exists, will not download soundf ...
-
... \n"; } { missing = ""; }; vws[ \listdoc ] = Document().string_( missing ++ "all soundfile paths:\n" ++ vws[ \val ].collect(_.path).join("\n") ).promptToSave_(false); }); view.view.onClose_({ if( vws[ \listdoc ].notNil ) { vws[ \listdoc ].cl ...
-
... nVar = "input"}; dash = "/"; Platform.case( \windows, {dash = "\\"; } ); path = soundFilePath ++ dash++ "IR" ++ dash ++ impulse ++ ".wav"; file = SoundFile.new; file.openRead(path); numChan = file.numChannels; file.close; numChan.do{|index| ...