<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: piano in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899545#M405802</link>
    <description>&lt;P&gt;You are right-&lt;/P&gt;&lt;P&gt;Class fingers needs an owning class hands to control the max span between fingers. &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, depend on the composer handleing that for you (and allow yourself to compose some quite unusual projects &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; )&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2009 22:00:56 GMT</pubDate>
    <dc:creator>JÞB</dc:creator>
    <dc:date>2009-04-30T22:00:56Z</dc:date>
    <item>
      <title>piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899357#M405706</link>
      <description>&lt;P&gt;I am working on something just for fun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you have a text file to start with (easier said than done),&lt;/P&gt;&lt;P&gt;that is formatted in the following manner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp; Time held&lt;/P&gt;&lt;P&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Time held&lt;/P&gt;&lt;P&gt;Note&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Time held&lt;/P&gt;&lt;P&gt;&amp;nbsp;.... etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I modified one of &lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=156245&amp;amp;query.id=500258#M156245" target="_blank"&gt;these&lt;/A&gt;&amp;nbsp;programs, I would like to accomplish the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read the text file.&lt;/P&gt;&lt;P&gt;Automatically play the song from the file. &lt;/P&gt;&lt;P&gt;But show which keys are being pressed while the piano is playing, so it could act as a tutorial.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the easiest way to do this would be to assign values to each key:&lt;/P&gt;&lt;P&gt;0 - 87 (including black and white keys)&lt;/P&gt;&lt;P&gt;Then I would read the file, which would say:&lt;BR /&gt;Note (0-87)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time held (ms)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would I need to find a .wav file of each note on a piano?&lt;/P&gt;&lt;P&gt;Then put a 'play sound file' in a loop. But how would I specify how long the note held for?&lt;BR /&gt;&lt;BR /&gt;I figure I could show which key is being pressed by changing the color of the control via property node or something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice while I'm coming up with something?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:08:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899357#M405706</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-04-30T17:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899367#M405712</link>
      <description>&lt;P&gt;Instead of a .wav file that plays each note,&lt;/P&gt;&lt;P&gt;since each note already has an absolute pitch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could use the 'beep.vi' function. I could convert pitch to frequency,&lt;/P&gt;&lt;P&gt;then input frequency and duration.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:27:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899367#M405712</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-04-30T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899379#M405721</link>
      <description>&lt;P&gt;Cory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sounds like a fun project!&lt;/P&gt;&lt;P&gt;I have a couple additional thoughts that you might consider so that a true tutorial can be realized.&lt;/P&gt;&lt;P&gt;&amp;nbsp; you may need class.fingers method.down(key, duration, force) method.slide(array of keys, array of increments, force)&amp;nbsp; allow 5 for Zichy composition, 20 for a duet &lt;/P&gt;&lt;P&gt;&amp;nbsp; You might consider class.pianotype(grand, upright, electric, ect...) have fun! detune a few keys on a bad piano!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Incorporate footwork&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right pedal - The loud one. Also known as the "forte" or sustain pedal, it prevents &lt;A href="http://www.concertpitchpiano.com/UprightActionModel.html" target="_blank"&gt;dampers&lt;/A&gt; from descending on the piano strings, resulting in a rich, sustained chord peal. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Left pedal - The soft one or "&lt;A href="http://www.bartleby.com/61/96/U0019600.html" target="_blank"&gt;una corda&lt;/A&gt;."
A single piano note is normally created from
two or three piano strings tuned in unison. This pedal shifts the
hammer so that it hits only one or two strings, resulting in a more
muted sound. Hence, "una corda" or "one string." &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Middle
pedal - The "sostenuto." This pedal selectively sustains notes, so that
certain notes can ring out while others fade normally. It is usually
found only on grand pianos. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;your file then will contain a list of methods, start times and params for each finger and the foot.&lt;BR /&gt;You could show force as color for the display &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:48:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899379#M405721</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2009-04-30T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899380#M405722</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;Those all sound like great ideas. Thanks for the input.&lt;/P&gt;&lt;P&gt;The project is actually coming along pretty well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:50:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899380#M405722</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-04-30T17:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899385#M405726</link>
      <description>&lt;P&gt;I'd love to see it when its complete! and your quite welcome. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 17:58:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899385#M405726</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2009-04-30T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899406#M405734</link>
      <description>&lt;P&gt;You could get fancy, and instead of using beep, you could create waveforms on the fly and feed it to a stream (buffer for audio output).&amp;nbsp; The waveforms would be made&amp;nbsp;from&amp;nbsp;the note frequency and various harmonics with defined decays.&amp;nbsp; There is probably some doccumentation of piano waveforms somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 18:43:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899406#M405734</guid>
      <dc:creator>falkpl</dc:creator>
      <dc:date>2009-04-30T18:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899538#M405797</link>
      <description>&lt;P&gt;What about double notes (when you hit two notes at the same time).&amp;nbsp; Come to think of it, you have two hands on the piano...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 21:53:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899538#M405797</guid>
      <dc:creator>MattBradley</dc:creator>
      <dc:date>2009-04-30T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899541#M405799</link>
      <description>&lt;P&gt;&lt;A href="http://en.wikibooks.org/wiki/File" target="_blank"&gt;http://en.wikibooks.org/wiki/File&lt;/A&gt;:Piano_waveform_reconstructed.svg,,, &amp;lt;&amp;lt;&amp;lt; that's a":" "P" (how to unsmiley?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sharewareconnection.com/pianos.htm" target="_blank"&gt;http://www.sharewareconnection.com/pianos.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thats a 5min search &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Jeff Bohrer on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-30-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 05:02 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Apr 2009 22:02:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899541#M405799</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2009-04-30T22:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899545#M405802</link>
      <description>&lt;P&gt;You are right-&lt;/P&gt;&lt;P&gt;Class fingers needs an owning class hands to control the max span between fingers. &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, depend on the composer handleing that for you (and allow yourself to compose some quite unusual projects &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2009 22:00:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899545#M405802</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2009-04-30T22:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899633#M405844</link>
      <description>&lt;P&gt;I have already thought of how I am going to implement single notes.&lt;/P&gt;&lt;P&gt;Chords will take some thinking, but I'll see what I can come up with.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2009 03:08:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899633#M405844</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-01T03:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899859#M405937</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;falkpl wrote: &lt;BR /&gt;&lt;P&gt;You could get fancy, and instead of using beep, you could create waveforms on the fly and feed it to a stream (buffer for audio output).&amp;nbsp; The waveforms would be made&amp;nbsp;from&amp;nbsp;the note frequency and various harmonics with defined decays.&amp;nbsp; There is probably some doccumentation of piano waveforms somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;How would I change the sound from a beep, to sound more like a piano? Could you please explain further?</description>
      <pubDate>Fri, 01 May 2009 16:05:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899859#M405937</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-01T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899879#M405941</link>
      <description>&lt;P&gt;beep is&amp;nbsp;&amp;nbsp; single tome (frequency) true sound form instruments are the sum of numerous harminics on the note and different decays.&amp;nbsp; I was never a good musician, but each instrument will be have unique characteristics on the harmonics and decays, this is why all instruments sound different and not like a synthetic pure tone.&amp;nbsp; using this approach to making each note, you can mix multiple notes into the same waveform for cords and even modulate the overall waveform and decay the amplitude so that note durations fade out after the note is played.&amp;nbsp; This can get very complex, but is probably what electrical pianos are doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2009 16:41:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899879#M405941</guid>
      <dc:creator>falkpl</dc:creator>
      <dc:date>2009-05-01T16:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899899#M405950</link>
      <description>&lt;P&gt;I've just about finished up with Keyboard.VI&amp;nbsp; Version 1.0 &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;The last thing that is holding me up is actually getting the files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest way to get music (besides .mp3) to work with is by downloading 'midi' files.&lt;/P&gt;&lt;P&gt;Somehow, I would need to convert the midi file into something I can actually use.&lt;BR /&gt;I would prefer if it was a text file or something easier to work with.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2009 17:22:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/899899#M405950</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-01T17:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905012#M407894</link>
      <description>&lt;P&gt;OK, the piano part of the VI seems to be working great, provided I use a txt file as I described earlier.&lt;/P&gt;&lt;P&gt;The most common form of music I can find (that is easily compatible with a computer) is a 'MIDI' file.&lt;/P&gt;&lt;P&gt;Here is a &lt;A href="http://faydoc.tripod.com/formats/mid.htm" target="_blank"&gt;detailed explination&lt;/A&gt; of how said file is formatted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you scroll to the very bottom of the&amp;nbsp;page, it shows the Event Commands.&lt;BR /&gt;I'm thinking I could use 'Match Pattern' to find 'note on' and 'note off' events.&lt;BR /&gt;If I read the binary as strings, I can match:&lt;/P&gt;&lt;P&gt;1000****&lt;/P&gt;&lt;P&gt;1001****&lt;/P&gt;&lt;P&gt;for off and on respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming 'velocity' is the length of the note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any advice on a better way to read the note and time?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These files contain MUCH more information about the song than&amp;nbsp; I am looking for, but parsing out the file should enable me to extract only the pieces I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another&amp;nbsp;question I had was:&lt;BR /&gt;The notes they list are 0-127.&lt;/P&gt;&lt;P&gt;A piano only has 88 keys.&lt;BR /&gt;How would I account for the difference in number of notes? Or does a piano not contain all of the listed octaves?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2009 17:05:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905012#M407894</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-11T17:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905026#M407899</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Cory&lt;/P&gt;&lt;P&gt;This application is very suitable through MIDI protocol. Everything is already defined and implemented. You just need to find a way to interface LabVIEW with MIDI implementation already in use in most of computer sound cards.&lt;/P&gt;&lt;P&gt;Ricardo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2009 17:18:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905026#M407899</guid>
      <dc:creator>ROtake</dc:creator>
      <dc:date>2009-05-11T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905035#M407904</link>
      <description>&lt;P&gt;I'm having a hard time opening a MIDI file in LabVIEW.&lt;/P&gt;&lt;P&gt;What exactly is it? A binary file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried both 'read text file' and 'read binary file', but get the following error:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/407904/2/error.PNG" border="0" width="558" height="264" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And heres what the output looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/407904/1/data.PNG" border="0" width="653" height="616" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Cory K on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 05-11-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 12:30 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 May 2009 17:30:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905035#M407904</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-11T17:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905044#M407908</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;ROtake wrote: &lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Cory&lt;/P&gt;&lt;P&gt;This application is very suitable through MIDI protocol. Everything is already defined and implemented. You just need to find a way to interface LabVIEW with MIDI implementation already in use in most of computer sound cards.&lt;/P&gt;&lt;P&gt;Ricardo&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi Ricardo,&lt;BR /&gt;Playing the file is more of a secondary goal for this VI.&lt;/P&gt;&lt;P&gt;The primary reason I am creating this VI is to show the keys being pressed on the piano as it is played in real-time.&lt;/P&gt;&lt;P&gt;Once I figure that out, I will worry about playing the file.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2009 17:33:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905044#M407908</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-11T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905060#M407916</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Cory K wrote: &lt;BR /&gt;&lt;P&gt;I'm having a hard time opening a MIDI file in LabVIEW.&lt;/P&gt;&lt;P&gt;What exactly is it? A binary file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried both 'read text file' and 'read binary file', but get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And heres what the output looks like:&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;I'm pretty sure that error is expected - it's telling you that it successfully read to the end of the file, in the same way that it would if you had specified some very large number of bytes to read (which is essentially what you've done by leaving the length input unwired).&amp;nbsp; The file appears to be a&amp;nbsp;binary file.&amp;nbsp; The difference between binary and text files is handling of end-of-line and maybe some other special characters which can be translated when dealing with text but should be left untouched when treated as binary data.&amp;nbsp; I haven't looked at the MIDI spec at all but my guess is that you'll want to create one or more clusters representing the MIDI data in a usable form, then break up the binary data you read from the file into appropriately sized chunks and typecast them to your clusters.</description>
      <pubDate>Mon, 11 May 2009 17:54:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905060#M407916</guid>
      <dc:creator>nathand</dc:creator>
      <dc:date>2009-05-11T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905067#M407920</link>
      <description>&lt;P&gt;I don't have much experience working with Binary.&lt;/P&gt;&lt;P&gt;How am I supposed to handle those characters, like the squares?&lt;BR /&gt;Is there a way to convert binary to ascii? Then I could figure out what I'm dealing with.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2009 17:59:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905067#M407920</guid>
      <dc:creator>Cory_K</dc:creator>
      <dc:date>2009-05-11T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: piano</title>
      <link>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905084#M407929</link>
      <description>&lt;P&gt;Cory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the bytes in both displays have already been converted to ASCII. Perhaps you want a display in hex. &amp;nbsp;Or maybe you want to display the non-alphanumeric characters in hex?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just change the string indicator display format to Hex or to '\' Codes Display. Neither of these changes the underlying data, only how it looks in the indicator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lynn&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2009 18:19:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/piano/m-p/905084#M407929</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2009-05-11T18:19:52Z</dc:date>
    </item>
  </channel>
</rss>

