Sound,  Music Libraries - Processing Discourse board_Sound.html Sound,  Music Libraries - Processing Discourse en-us Processing Discourse Thu, 22 Mar 2012 05:51:06 +0000 http://blogs.law.harvard.edu/tech/rss 30 Split Audio file num_1275851579.html Processing Discourse/Sound,  Music Libraries num_1275851579.html Wed, 16 Jun 2010 23:06:38 +0000 is this what you want <br /><br />void setup()&#123;<br />  size(256,200);<br />  byte b[] = loadBytes(&quot;_____________.mp3&quot;); &nbsp; &nbsp; &nbsp;  <br />  println(&quot;Song Byte Length: &quot; + b.length); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />  // print each value, from 0 to 255  &nbsp; &nbsp; &nbsp;<br />// this part was moved &nbsp; &nbsp; &nbsp;<br />byte[] c = new byte[10000000];<br />  for (int i = 0; i &lt; b.length; i++) &#123;<br /><br />    if(boolean(b[i]))&#123; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp;c[i] = (byte)(b[i]);<br />    &#125; &nbsp; &nbsp; &nbsp; <br />    if( (i % 1000000) == 0)&#123;<br /> &nbsp; &nbsp; &nbsp;saveBytes(&quot;First-&quot; + i + &quot;.mp3&quot;,c); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &nbsp;println(i + &quot;: File&quot;); &nbsp; &nbsp; &nbsp; <br />    &#125; &nbsp; &nbsp; &nbsp;  <br />  &#125;<br />  // print a blank line at the end  &nbsp; &nbsp; &nbsp;<br />  println(&quot;Done&quot;);<br />&#125;<br /><br />//you were making an alot of arrays that was 1000000 . java<br />// doesn't like that <br /> Stop an audio track num_1276438987.html Processing Discourse/Sound,  Music Libraries num_1276438987.html Wed, 16 Jun 2010 22:57:15 +0000 if(mouseIsInArea)&#123;<br /> &nbsp; &nbsp; &nbsp; //startPlaying the song <br /> &nbsp; &nbsp; &nbsp; // only make it play once or else it will keep <br /> &nbsp; &nbsp; &nbsp; // playing over it self <br /><br />&#125;<br />else&#123;<br /> &nbsp;//stop the song<br /> &nbsp;//and rewind if its a imported sound file <br />&#125; Minin Error num_1276228596.html Processing Discourse/Sound,  Music Libraries num_1276228596.html Wed, 16 Jun 2010 22:44:37 +0000 Thanks for the help I've fixed that problem but now it looks like I have to preload all my sound outputs to fix the animation lag &nbsp;<img src="yabbfiles/Templates/Forum/processing_one/cry.gif" border="0" alt="Cry" title="Cry" /> . Any advice would be appreciated on how to do this. word recognition? num_1191403856.html Processing Discourse/Sound,  Music Libraries num_1191403856.html Tue, 15 Jun 2010 09:40:55 +0000 Hello Saki_Kawa,<br />I can't seem to make it work, I keep getting errors that I don't know where they originate.<br /><br />Believing it was a path problems I have tried many different combinations, could you give an example including paths?<br /><br /> <b>Code:</b><pre class="code">&#91;Voce ERROR&#93; Cannot configure speech recognizer&#58; <br &#47;>Property Exception component&#58;'jsgfGrammar' property&#58;'grammarLocation' &#45; value &#40;C&#58;&#47;&#068;ocuments and Settings&#47;Administrator&#47;My &#068;ocuments&#47;Processing&#47;testvoce&#47;grammar&#47;&#41; is not a valid Resource<br &#47;> </pre><br /><br />and my config:<br /> <b>Code:</b><pre class="code">  voce&#46;SpeechInterface&#46;init&#40;&quot;c&#58;&#47;Program Files&#47;processing&#47;libraries&#47;voce&#47;library&#47;&quot;, true, true, <br &#47;>  &quot;C&#58;&#47;&#068;ocuments and Settings&#47;Administrator&#47;My &#068;ocuments&#47;Processing&#47;testvoce&#47;grammar&#47;&quot;, &quot;gram&quot;&#41;;<br &#47;>  System&#46;out&#46;println&#40;&quot;This is a speech recognition test&#46; &quot;&#41;; </pre> in SONIA, read data from sample AFTER effects... num_1276617771.html Processing Discourse/Sound,  Music Libraries num_1276617771.html toma.bernardi@yahoo.fr (thomasB) Tue, 15 Jun 2010 09:02:51 +0000 Dear forum,<br /><br />I'm trying to export a samples mix to a wav file.<br />I'm using mySample.read() to add different sources to the final mix export.<br />But during my mix, i use setRate to change sample pitch and setVolume to change sample volume... my problem is to export this change to my wav...is it possible to do that ?<br />how can i read sample data AFTER a setRate() or setVolume() ?<br /><br />Many Thanks!<br /><br />thomas audio analyser > to internet (JS) num_1276553362.html Processing Discourse/Sound,  Music Libraries num_1276553362.html Mon, 14 Jun 2010 15:09:22 +0000 Hello there, I am developing a project for my Uni course and I am pretty new with processing and arduino. <br />Basically what I need is to process the signal coming from an audio input and to convert the values in order to be sent to a javascript page (google maps API), maybe in a html array(?). <br />Any advice???<br /><br />I attached the entire description of the project but you don't really need to read it cause it pretty long and boring. Thanks a lot to everyone!<br /><br /><br />------<br />I &nbsp;decided to create something that concerns with maps, roads, routes… &nbsp;and vinyl records. A machine that will create routes (idea from the drift, &quot;derive, by Guy Debord's psychogeography and situationism) depending on the disc you choose (and depending on the space in which you will hear it).<br />While the turntable will play the selected vinyl, a microphone will analyse the sound spectrum of what it is playing. This spectrum will be modified in two variables (X, Y), say for example we will examine the volume and pitch. These two variables will be used to add a point ( coordinates X, Y) on the map we are creating. <br /><br />At the same time, the map will contain a third type of information (variable Z), something like altitude or population's density. This means that for each value of X, Y, we would have a value of Z. This will be sent back to the turntable and it will decide the movement of the arm of the turntable (the movement will create noises and scratches cause there will be no up and down movement of the reading-head). The arm of the turntable is controlled by a motor (which will move in both directions). The values of this motor (Z1) will go for example from 0 to 100 (correspondingly start - end of the disc). For each value of Z, for example (altitude 450 meters on a certain point) we will have a corresponding Z1, for example 86 .. this will move the arm of the turntable. We will so hear another piece of vinyl - restarting the process all over again - creation other coordinates.<br /><br /> New JOAL based audio playback library num_1229742216.html Processing Discourse/Sound,  Music Libraries num_1229742216.html Sun, 13 Jun 2010 12:56:24 +0000 By default on OSX OpenAL will only run in software mode and simply does distance attenuation without any clever filtering, which is only available if you have an EAX compatible 5.1 audio card. So the M-Audio device you were looking at is unfortunately not going to be an improvement. However, I've done some digging and found this USB box by Creative (the same company behind the OpenAL standard) which seems to be fully mac compatible according to the linked thread below:<br /><br /><a href="http://us.store.creative.com/Sound-Blaster-XFi-Surround-5.1/M/B0017QQQAE.htm" target="_blank">http://us.store.creative.com/Sound-Blaster-XFi-Surround-5.1/M/B0017QQQAE.htm</a><br /><br />Discussed here:<br /><a href="http://forums.macrumors.com/showthread.php?t=810797#3" target="_blank">http://forums.macrumors.com/showthread.php?t=810797#3</a><br /><br />Also note that a 5.1 surround card will still not necessarily provide a full 3D ambisonic field, even with an EAX card. However, for Windows there's a commercial, OpenAL compatible, fully 3D ambisonic driver, called Rapture3D: <a href="http://www.blueripplesound.com" target="_blank">http://www.blueripplesound.com</a> - this would simply show up as virtual OpenAL device and can be used by the library as well...<br /> Troubles data to sound SOLVED num_1276040349.html Processing Discourse/Sound,  Music Libraries num_1276040349.html Thu, 10 Jun 2010 19:20:32 +0000 SOLVED!<br /> <b>Code:</b><pre class="code"><br &#47;>import ddf&#46;minim&#46;*;<br &#47;>import ddf&#46;minim&#46;signals&#46;*;<br &#47;>byte&#91;&#93; data;<br &#47;>Minim minim;<br &#47;>AudioOutput out;<br &#47;>SineWave sine;<br &#47;>PImage b;<br &#47;>int imageWidth = 391;<br &#47;>int imageHeight = 480;<br &#47;>int counter = 0;<br &#47;>int posX = 0;<br &#47;>int posY = 0;<br &#47;>int imageWidthMax;<br &#47;><br &#47;>void setup&#40;&#41;<br &#47;>&#123;<br &#47;><br &#47;><br &#47;><br &#47;><br &#47;>  size&#40;imageWidth, imageHeight&#41;;<br &#47;><br &#47;>frameRate&#40;30&#41;;<br &#47;>  minim = new Minim&#40;this&#41;;<br &#47;>  out = minim&#46;getLineOut&#40;Minim&#46;STEREO&#41;;<br &#47;>  sine = new SineWave&#40;440, 0&#46;5, out&#46;sampleRate&#40;&#41;&#41;;<br &#47;><br &#47;>  sine&#46;portamento&#40;200&#41;;<br &#47;><br &#47;>  out&#46;addSignal&#40;sine&#41;;<br &#47;>  data=loadBytes&#40;&quot;foto&#46;jpg&quot;&#41;;<br &#47;> <br &#47;>int totalSize = imageWidth * imageHeight;<br &#47;>int ByteSize = data&#46;length;<br &#47;>int posAmount = totalSize&#47;ByteSize;<br &#47;>int imageWidthMax = imageWidth&#47;3;<br &#47;><br &#47;>  b = loadImage&#40;&quot;foto&#46;jpg&quot;&#41;; <br &#47;>  noStroke&#40;&#41;;<br &#47;>    image&#40;b, 0, 0&#41;;<br &#47;>&#125;<br &#47;><br &#47;>void draw&#40;&#41;<br &#47;>&#123;<br &#47;><br &#47;>  <br &#47;>  float freq = map&#40;abs&#40;data&#91;frameCount&#93;&#41;, 0, 150, 100, 0&#41;;<br &#47;>  sine&#46;setFreq&#40;freq&#41;;<br &#47;>  float pan = map&#40;abs&#40;frameCount&#41;, 0, 150, &#45;1, 1&#41;;<br &#47;>  sine&#46;setPan&#40;pan&#41;;<br &#47;> fill&#40;#FF0303&#41;;<br &#47;> rect&#40;posX, posY, 1, 1&#41;;<br &#47;> posX ++;<br &#47;><br &#47;> if &#40;posX == imageWidth&#41;&#123;<br &#47;>  posY++;<br &#47;>  posX = 1;<br &#47;> &#125;<br &#47;>  &#125;   <br &#47;><br &#47;><br &#47;><br &#47;><br &#47;>void stop&#40;&#41;<br &#47;>&#123;<br &#47;>  out&#46;close&#40;&#41;;<br &#47;>  minim&#46;stop&#40;&#41;;<br &#47;>  <br &#47;>  super&#46;stop&#40;&#41;;<br &#47;>&#125;<br &#47;> </pre> Sound recognition num_1242223423.html Processing Discourse/Sound,  Music Libraries num_1242223423.html Tue, 08 Jun 2010 21:21:43 +0000 Thanks, Guru. &nbsp;Works like a charm for testing in both windows and linux. FFT computer track? num_1275851772.html Processing Discourse/Sound,  Music Libraries num_1275851772.html Sun, 06 Jun 2010 12:16:12 +0000 Hey all. I'm currently on a mac and I was wondering how I'd get processing to analyze my computers track. Currently I'm using FFT on an audio file that I load. I want to do the same thing, but instead of loading the audio track into the project folder I want Processing to FFT the computer audio track. Any help?<br /><br />Thanks,<br />Bixby two examples, nearly identical, one gets error?? num_1275807632.html Processing Discourse/Sound,  Music Libraries num_1275807632.html Sun, 06 Jun 2010 00:00:32 +0000 hey ive been following two examples using the Ess audio library<br />two of the examples are nearly identical, except that one works and runs correctly, where as the other complains that the Amplify(float) constructor is undefined... I have put the library in the sketchbook libraries folder. im new to this stuff so im sure it is a simple mistake, but i cannot find for the life of me what the difference is that makes one work and the other not. here are the two examples:<br /><hr width="40%" align="left" size="1" class="hr" />first one (works):<br /> <b>Code:</b><pre class="code">&#47;&#47; Example by Krister Olsson<br &#47;><br &#47;>import krister&#46;Ess&#46;*;<br &#47;><br &#47;>AudioChannel myChannel;<br &#47;>Amplify myAmplify;<br &#47;><br &#47;>void setup&#40;&#41; &#123;<br &#47;>  size&#40;256,200&#41;;<br &#47;><br &#47;>  &#47;&#47; start up Ess<br &#47;>  Ess&#46;start&#40;this&#41;;<br &#47;><br &#47;>  &#47;&#47; load &quot;cell&#46;aif&quot; into a new AudioChannel<br &#47;>  myChannel=new AudioChannel&#40;&quot;cell&#46;aif&quot;&#41;;<br &#47;><br &#47;>  &#47;&#47; amplify first 2 seconds 25%<br &#47;>  myAmplify=new Amplify&#40;&#46;25&#41;;<br &#47;>  <br &#47;>  myAmplify&#46;filter&#40;myChannel,0,myChannel&#46;frames&#40;2000&#41;&#41;;<br &#47;><br &#47;>  &#47;&#47; amplify next 2 seconds 300%<br &#47;>  myAmplify&#46;percent=3;<br &#47;>  <br &#47;>  myAmplify&#46;filter&#40;myChannel,myChannel&#46;frames&#40;2000&#41;,myChannel&#46;frames&#40;2000&#41;&#41;;  <br &#47;><br &#47;>  &#47;&#47; play<br &#47;>  myChannel&#46;play&#40;&#41;;<br &#47;>&#125;<br &#47;><br &#47;>void draw&#40;&#41; &#123;<br &#47;>&#125;<br &#47;><br &#47;>&#47;&#47; we are done, clean up Ess<br &#47;><br &#47;>public void stop&#40;&#41; &#123;<br &#47;>  Ess&#46;stop&#40;&#41;;<br &#47;>  super&#46;stop&#40;&#41;;<br &#47;>&#125; </pre><br /><hr width="40%" align="left" size="1" class="hr" />second one (error: The constructor Amplify(float) is undefined)<br /> <b>Code:</b><pre class="code">&#47;&#47; Example by Krister Olsson<br &#47;><br &#47;>import krister&#46;Ess&#46;*;<br &#47;><br &#47;>AudioChannel myChannel;<br &#47;>Amplify myAmplify;<br &#47;><br &#47;>void setup&#40;&#41; &#123;<br &#47;>  size&#40;256,200&#41;;<br &#47;><br &#47;>  &#47;&#47; start up Ess<br &#47;>  Ess&#46;start&#40;this&#41;;<br &#47;><br &#47;>  &#47;&#47; load &quot;cell&#46;aif&quot; into a new AudioChannel<br &#47;>  myChannel=new AudioChannel&#40;&quot;cell&#46;aif&quot;&#41;;<br &#47;><br &#47;>  &#47;&#47; amplify first 2 seconds 25%<br &#47;>  myAmplify=new Amplify&#40;&#46;25&#41;; &#47;* &lt;&#45;&#45; THIS IS THE LINE GIVING THE ERROR *&#47;<br &#47;>  <br &#47;>  myAmplify&#46;filter&#40;myChannel,0,myChannel&#46;frames&#40;2000&#41;&#41;;<br &#47;><br &#47;>  &#47;&#47; play<br &#47;>  myChannel&#46;play&#40;&#41;;<br &#47;>&#125;<br &#47;><br &#47;>void draw&#40;&#41; &#123;<br &#47;>&#125;<br &#47;><br &#47;>&#47;&#47; we are done, clean up Ess<br &#47;><br &#47;>public void stop&#40;&#41; &#123;<br &#47;>  Ess&#46;stop&#40;&#41;;<br &#47;>  super&#46;stop&#40;&#41;;<br &#47;>&#125; </pre><br /><hr width="40%" align="left" size="1" class="hr" />i have tried closing processing completely, and starting again and opening the two examples again, but the same problem keeps occuring!<br />thanks for your help in advance, sorry if its a trivial problem but it really has stumped me and i want to know why it occurs... Simply repositioning a waveform num_1275743329.html Processing Discourse/Sound,  Music Libraries num_1275743329.html pauline_b_appiah@hotmail.com (pauline) Sat, 05 Jun 2010 06:55:00 +0000 Thank you Cedric, i'll try that <img src="yabbfiles/Templates/Forum/processing_one/smiley.gif" border="0" alt="Smiley" title="Smiley" /> minim & proMidi num_1275641443.html Processing Discourse/Sound,  Music Libraries num_1275641443.html Fri, 04 Jun 2010 01:50:43 +0000 hi,<br />i'm working on a live visual project and i want to add an extern midi controller for live interaction. So I tried the proMidi lib but when I call 'Controller' I get: 'The type Controller is ambiguous' because I also use the minim lib and this lib has also a 'controller' function. How can I solve this, changing the proMidi lib or using an other midi lib,...<br /><br />rd minim audioplayer volume change num_1224778221.html Processing Discourse/Sound,  Music Libraries num_1224778221.html Wed, 02 Jun 2010 23:23:04 +0000 i tryed the code:<br /><br /><br /><span style="color: #0000ff;">import ddf.minim.*;<br /><br />Minim minim;<br />AudioPlayer player;<br /><br />void setup()&#123;<br />    minim = new Minim(this);<br />    player = minim.loadFile(&quot;foo.mp3&quot;);<br />    player.loop();<br /><br />    println(player.getControlls());<br />&#125;<br /></span><br /><br /><br />and then, i got messages below:<br /><br /><br /><span style="color: #00aaaa;">[0] Master Gain with current value: 0.0 dB (range: -80.0 - 13.9794)<br />[1] Mute Control with current value: False<br />[2] Pan with current value: 0.0  (range: -1.0 - 1.0)<br />[3] Sample Rate with current value: 44100.0 FPS (range: 0.0 - 48000.0)<br /></span><br /><br />these messages mean that Gain, Mute, Pan and Sample Rate are available on AudioPlayer.<br /><br />According to [0],<br /><br />    <span style="color: #0000ff;">player.shiftGain(-80.0, 0.0, 10000);<br /><br />    player.setGain(-10.0);<br /><br />    player.mute();<br /><br />    player.unmute();<br /></span><br />will go fine <img src="yabbfiles/Templates/Forum/processing_one/smiley.gif" border="0" alt="Smiley" title="Smiley" /><br /><br /><br />Gain's unit is dB and range is -80.0 to 14.0. Note that it has very large range in contrast to Volume (0.0 to 1.0). (the range maybe depends on your environment) FFT condensing? num_1275535264.html Processing Discourse/Sound,  Music Libraries num_1275535264.html Wed, 02 Jun 2010 21:57:06 +0000 Found my answer here: http://code.compartmental.net/tools/minim/manual-fft/ Audio Rate Events num_1275408011.html Processing Discourse/Sound,  Music Libraries num_1275408011.html Tue, 01 Jun 2010 09:00:11 +0000 Hi,<br />Does anyone have experience working at audio rate in Processing? I would like to run calculations on events triggered at audio rate (instead of frame rate). I am running calculations in Processing that output to SuperCollider and events triggered at the frame rate are not accurate enough. Any ideas?<br /><br /><br />Thanks!<br /><br />Kenric switch audio interfaces when using krister Ess num_1275407877.html Processing Discourse/Sound,  Music Libraries num_1275407877.html Tue, 01 Jun 2010 08:57:57 +0000 How to switch between audio interfaces when using krister.Ess?<br />Is there an example that I'm missing?<br /><br />Any help will be much appreciated! HELP please.. Video error :( num_1275078733.html Processing Discourse/Sound,  Music Libraries num_1275078733.html Tue, 01 Jun 2010 00:34:35 +0000 initialize player to an arbitrary file, right now it's only defined under certain conditions. &nbsp;That way it won't ever be null.<br /><br />or you could do<br /><br />if(player != null)&#123;<br />player.stop();<br />&#125;<br /><br /><img src="yabbfiles/Templates/Forum/processing_one/smiley.gif" border="0" alt="Smiley" title="Smiley" /> Midi in fron Live , to trigger an event in p5 ? num_1274430804.html Processing Discourse/Sound,  Music Libraries num_1274430804.html Mon, 31 May 2010 11:49:21 +0000 Yes. I've been experimenting with stuff like this too. Wrote about it here:<br /><br /><a href="http://amnonp5.wordpress.com/2010/05/29/processing-reaktor-5" target="_blank">http://amnonp5.wordpress.com/2010/05/29/processing-reaktor-5</a><br /><br />To do what you want, I suggest using midibus + midi yoke. Output the midi signal from live into a midi yoke port and use this port as input in processing. Mac's apparantly have a program like midi yoke built in called the IAC Driver. So you could also use that. Library question num_1275294840.html Processing Discourse/Sound,  Music Libraries num_1275294840.html Mon, 31 May 2010 01:34:00 +0000 It's possible to use a proccesing library like toxi in a standart java compiler?<br /><br />Thanks! Record what i hear... num_1275051069.html Processing Discourse/Sound,  Music Libraries num_1275051069.html toma.bernardi@yahoo.fr (thomasB) Fri, 28 May 2010 05:51:09 +0000 Hello,<br /><br />I'm working with Sonia on a sampler style sketch.<br />I want to plug a kind of &quot;export button&quot; to record what it play in my sketch and put it on a .wav.<br />I find to export a liveInput into .wav but not to export what it play on my sketch...<br />Any idea ?<br /><br />Thanks+++ Garageband as MIDI player num_1274919066.html Processing Discourse/Sound,  Music Libraries num_1274919066.html Wed, 26 May 2010 17:11:06 +0000 So I'm working on this project that will parse text to find any letters that are musical notes.<br /><br />Whenever it finds those notes it plays them by sending MIDI messages<br />to Garageband. <br /><br />As of now, it does not do that, I want it to send the messages to garageband but I don't know how.<br /><br />Can anyone show me how to set up Garageband as the MIDI output?<br />I'm using the proMIDI library store or record Midi value num_1274783201.html Processing Discourse/Sound,  Music Libraries num_1274783201.html Tue, 25 May 2010 09:43:12 +0000 to get a bit closer into the topic here is the current code. i´m a newbee in processing and the code is maybe really rude for you...sorry... I tried to create a array for saving the receiving midi value. i think the buttons are also not the best solution at the moment, but this could be correct later.<br /><br /> <b>Code:</b><pre class="code">import themidibus&#46;*; <br &#47;>import controlP5&#46;*;<br &#47;><br &#47;>PFont myFont;<br &#47;><br &#47;>MidiBus Software_Input;<br &#47;>MidiBus Controller_Input;<br &#47;>MidiBus Linked;<br &#47;>ControlP5 controlP5;<br &#47;><br &#47;>boolean Software;<br &#47;>boolean Controller;<br &#47;><br &#47;>int &#91;&#93; channelA;<br &#47;>int &#91;&#93; channelB;<br &#47;><br &#47;><br &#47;>void setup&#40;&#41; &#123;<br &#47;>  size&#40;300, 200&#41;;<br &#47;>  background&#40;50&#41;;<br &#47;>  stroke &#40;150&#41;;<br &#47;>  line &#40;0, 30, 300, 30&#41;;<br &#47;>  <br &#47;>  channelA = new int &#91;8&#93;;<br &#47;>  channelB = new int &#91;8&#93;;<br &#47;>  <br &#47;>  <br &#47;><br &#47;>&#47;&#47;MI&#068;I <br &#47;>  MidiBus&#46;list&#40;&#41;; &#47;&#47; List all available Midi devices <br &#47;>  Software_Input = new MidiBus&#40;this, 0, 0&#41;; &#47;&#47; Create a new MidiBus using the device index <br &#47;>  &#47;&#47;myBus = new MidiBus&#40;this, &quot;Incoming&#068;eviceName&quot;, &quot;Outgoing&#068;eviceName&quot;&#41;; &#47;&#47; Create a new MidiBus using the device names <br &#47;>  Controller_Input = new MidiBus&#40;this, 2, 0&#41;; &#47;&#47; Create a new MidiBus using the device index<br &#47;>  <br &#47;>&#47;&#47;FONT<br &#47;>  &#47;&#47; Uncomment the following two lines to see the available fonts <br &#47;>  &#47;&#47; String&#91;&#93; fontList = PFont&#46;list&#40;&#41;;<br &#47;>  &#47;&#47; println&#40;fontList&#41;;<br &#47;>  myFont = createFont&#40;&quot;TradeGothicLTCom&#45;BdCn20&quot;, 12&#41;;<br &#47;>  textFont&#40;myFont&#41;;<br &#47;>  fill &#40;240&#41;;<br &#47;>  text&#40;&quot;MI&#068;I MAPPING Mock&#45;Up&quot;, 50, 20&#41;;<br &#47;><br &#47;>&#47;&#47;Buttons  <br &#47;>  controlP5 = new ControlP5&#40;this&#41;;<br &#47;>  controlP5&#46;addToggle&#40;&quot;Software&quot;, false, 60, 50, 20, 20&#41;;<br &#47;>  controlP5&#46;addToggle&#40;&quot;Controller&quot;, false, 60, 100, 20, 20&#41;;<br &#47;>  controlP5&#46;addToggle&#40;&quot;Linked&quot;, false, 60, 150, 20, 20&#41;;<br &#47;><br &#47;>&#125;<br &#47;><br &#47;>void draw&#40;&#41; &#123;<br &#47;>  <br &#47;>  <br &#47;>  <br &#47;>  for &#40;int i = 0; i&lt; channelA&#46;length; i++&#41; &#123;<br &#47;> <br &#47;>  &#125;<br &#47;>  <br &#47;>&#125;<br &#47;>   <br &#47;>void noteOn&#40;int channel, int pitch, int velocity&#41; &#123;<br &#47;>  &#47;&#47; Receive a noteOn<br &#47;>  println&#40;&#41;;<br &#47;>  println&#40;&quot;Note On&#58;&quot;&#41;;<br &#47;>  println&#40;&quot;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&quot;&#41;;<br &#47;>  println&#40;&quot;Channel&#58;&quot;+channel&#41;;<br &#47;>  println&#40;&quot;Pitch&#58;&quot;+pitch&#41;;<br &#47;>  println&#40;&quot;Velocity&#58;&quot;+velocity&#41;;<br &#47;>&#125;<br &#47;><br &#47;>void noteOff&#40;int channel, int pitch, int velocity&#41; &#123;<br &#47;>  &#47;&#47; Receive a noteOff<br &#47;>  println&#40;&#41;;<br &#47;>  println&#40;&quot;Note Off&#58;&quot;&#41;;<br &#47;>  println&#40;&quot;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&quot;&#41;;<br &#47;>  println&#40;&quot;Channel&#58;&quot;+channel&#41;;<br &#47;>  println&#40;&quot;Pitch&#58;&quot;+pitch&#41;;<br &#47;>  println&#40;&quot;Velocity&#58;&quot;+velocity&#41;;<br &#47;>&#125;<br &#47;><br &#47;>void controllerChange&#40;int channel, int number, int value&#41; &#123;<br &#47;>  &#47;&#47; Receive a controllerChange<br &#47;>  println&#40;&#41;;<br &#47;>  println&#40;&quot;Controller Change&#58;&quot;&#41;;<br &#47;>  println&#40;&quot;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&quot;&#41;;<br &#47;>  println&#40;&quot;Channel&#58;&quot;+channel&#41;;<br &#47;>  println&#40;&quot;Number&#58;&quot;+number&#41;;<br &#47;>  println&#40;&quot;Value&#58;&quot;+value&#41;;<br &#47;>&#125; </pre><br /><br />thnx again... speech recognition with sphinx num_1224681162.html Processing Discourse/Sound,  Music Libraries num_1224681162.html Mon, 24 May 2010 06:43:40 +0000 Hi!<br /><br />I'm using Voce and it's very very powerful!!<br /><br />Read this:<br />http://processing.org/discourse/yabb2/num_1191403856_15.html#17 using promidi with an electronic drumkit num_1274370249.html Processing Discourse/Sound,  Music Libraries num_1274370249.html Mon, 24 May 2010 02:51:58 +0000 antiplastik - thanks for your efforts with this - in the end I tried a different midi library RWmidi and it picked up the drums without a hitch and does exactly what I need<br />I suspect that proMidi was more complex than I needed (or understood)<br />thanks for your help all the same<br />cheers<br />