Difference between revisions of "Plugins-soundui"

From Bcontrol
(@soundui - SoundInterface)
(@soundui - SoundInterface)
Line 4: Line 4:
 
   [x,y]=SoundInterface(obj,'add','mysound',x,y)
 
   [x,y]=SoundInterface(obj,'add','mysound',x,y)
 
This will create the following SoloUIParams starting at position x,y
 
This will create the following SoloUIParams starting at position x,y
# mysoundStyle : menu:{'Tone', 'Bups', 'ToneSweep','BupsSweep','File'}   
+
  mysoundStyle : menu:{'Tone', 'Bups', 'ToneSweep','BupsSweep','File'}   
# mysoundVol
+
  mysoundSndsMenu : menu of files in Sounds_directory. (see below).
# mySoundBal
+
  mysoundVol, mySoundBal
# mysoundFreq1
+
  mysoundFreq1, mysoundFreq2  
# mysoundFreq2  
+
  mysoundDur1, mysoundDur2
# mysoundDur1
+
  mysoundTau, mysoundGap
# mysoundDur2
 
# mysoundTau
 
# mysoundGap
 
  
 
*Added a '''Play''' button, so that you can listen to your sounds as you change the settings!
 
*Added a '''Play''' button, so that you can listen to your sounds as you change the settings!
Line 19: Line 16:
 
*Changes to any of the elements will automatically generate the new sound and make the appropriate call to the SoundManagerSection.
 
*Changes to any of the elements will automatically generate the new sound and make the appropriate call to the SoundManagerSection.
 
*Future development will pretty up the interface, and add new sound styles, like Chords, Clicks.
 
*Future development will pretty up the interface, and add new sound styles, like Chords, Clicks.
 +
*The plugin will try to get a relative directory for the sounds from the Settings object.  Otherwise it guesses that sounds are in <tt>Solo_rootdir/../CNMC/Sounds</tt>.  It looks for <tt>mat</tt> files which must contain
 +
# samp_rate
 +
# either mono_snd or stereo_snd
  
 
[[User:Jerlich|Jerlich]] 07:53, 18 July 2007 (EDT)
 
[[User:Jerlich|Jerlich]] 07:53, 18 July 2007 (EDT)

Revision as of 11:08, 20 July 2007

@soundui - SoundInterface

This plugin lets you call a single command:

 [x,y]=SoundInterface(obj,'add','mysound',x,y)

This will create the following SoloUIParams starting at position x,y

 mysoundStyle : menu:{'Tone', 'Bups', 'ToneSweep','BupsSweep','File'}  
 mysoundSndsMenu : menu of files in Sounds_directory. (see below).
 mysoundVol, mySoundBal
 mysoundFreq1, mysoundFreq2 
 mysoundDur1, mysoundDur2
 mysoundTau, mysoundGap
  • Added a Play button, so that you can listen to your sounds as you change the settings!
  • Elements are enabled and disabled as appropriate for their Style.
  • Checks sounds manager to see if sound has actually changed before uploading new sounds. This prevents overhead from accidental callbacks from user navigation (mouse clicks, tabs).
  • Changes to any of the elements will automatically generate the new sound and make the appropriate call to the SoundManagerSection.
  • Future development will pretty up the interface, and add new sound styles, like Chords, Clicks.
  • The plugin will try to get a relative directory for the sounds from the Settings object. Otherwise it guesses that sounds are in Solo_rootdir/../CNMC/Sounds. It looks for mat files which must contain
  1. samp_rate
  2. either mono_snd or stereo_snd

Jerlich 07:53, 18 July 2007 (EDT)