<?xml version="1.0"?>
<!-- RSS generated by Radio UserLand v8.0.8 on Mon, 28 Jun 2004 23:42:35 GMT -->
<rss version="2.0" xmlns:ent="http://www.purl.org/NET/ENT/1.0/" xmlns:sguid="http://www.purl.org/NET/SGUID/1.0/">
	<channel>
		<title>Matt Mower: Hot Water Music</title>
		<link>http://matt.blogs.it/categories/hotWaterMusic/</link>
		<description>Experiments with music</description>
		<language>en-gb</language>
		<copyright>Copyright 2004 Matt Mower</copyright>
		<lastBuildDate>Mon, 28 Jun 2004 23:42:35 GMT</lastBuildDate>
		<docs>http://backend.userland.com/rss</docs>
		<generator>Radio UserLand v8.0.8</generator>
		<managingEditor>mmower@novissio.com</managingEditor>
		<webMaster>mmower@novissio.com</webMaster>
		<category domain="http://www.weblogs.com/rssUpdates/changes.xml">rssUpdates</category> 
		<ttl>60</ttl>
		
		<item>
			<title>STES weblog launched</title>
			<link>http://matt.blogs.it/categories/hotWaterMusic/2004/06/29.html#a1510</link>
			<description>&lt;img src=&quot;http://paolo.evectors.it/myImages/stesMinilogo.gif&quot;&gt;Today we launched the &lt;a href=&quot;http://stes.evectors.com/&quot;&gt;STES weblog&lt;/a&gt;.&amp;nbsp;
In the coming weeks we hope this will be a great resource for learning
about the event and the excellent group who will be leading our
sessions.&lt;br&gt;
</description>
			<guid>http://matt.blogs.it/categories/hotWaterMusic/2004/06/29.html#a1510</guid>
			<pubDate>Mon, 28 Jun 2004 23:42:27 GMT</pubDate>
			<comments>http://radiocomments.userland.com/comments?u=107808&amp;amp;p=1510&amp;amp;link=http%3A%2F%2Fmatt.blogs.it%2F2004%2F06%2F29.html%23a1510</comments>
			<ent:cloud ent:href="http://w4.evectors.it/itentdirectory/topicRoll.opml"><ent:topic ent:classification="what" ent:href="http://k-collector.evectors.it/itEntDirectory/topic?topic=events" ent:id="events">Events</ent:topic>
<ent:topic ent:classification="who" ent:href="http://k-collector.evectors.it/itEntDirectory/topic?topic=paolo_valdemarin" ent:id="paolo_valdemarin">Paolo Valdemarin</ent:topic>
<ent:topic ent:classification="where" ent:href="http://k-collector.evectors.it/itEntDirectory/topic?topic=stes" ent:id="stes">STES</ent:topic>
</ent:cloud>

			</item>
		<item>
			<title>Live accompanyment for musicians</title>
			<link>http://matt.blogs.it/categories/hotWaterMusic/2003/09/17.html#a1136</link>
			<description>I came across an interesting piece of software today called &lt;a href=&quot;http://www.swansos.com/cygnet/cygnet.htm&quot;&gt;Cygnet&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Writing using the Java Sound API it claims to be a way of enhacing live
performance by accompanying musicians as they play.&amp;nbsp; Although it
can play an entire piece the idea is that it fills in for missing
players (and it followers the performers tempo) or just makes a few
people sound like a lot of people.&lt;br&gt;
</description>
			<guid>http://matt.blogs.it/categories/hotWaterMusic/2003/09/17.html#a1136</guid>
			<pubDate>Wed, 17 Sep 2003 08:36:46 GMT</pubDate>
			<comments>http://radiocomments.userland.com/comments?u=107808&amp;amp;p=1136</comments>
			
			</item>
		<item>
			<title>note on note off note on note on note on note off</title>
			<link>http://matt.blogs.it/categories/hotWaterMusic/2003/08/25.html#a1108</link>
			<description>&lt;P&gt;My thanks to &lt;A href=&quot;http://www.redtailcanyon.com/channels/The+David+Channel.aspx&quot;&gt;David Knight&lt;/A&gt; for the explanation of multiple MIDI NOTE_ON events for the same note.&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style=&quot;MARGIN-RIGHT: 0px&quot;&gt;
&lt;P&gt;If you send two note_on messages, the second note_on message overrides the first (the first one is lost). &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is simple enough until you start trying to convert MIDI into the musical score that it represents.&amp;nbsp; In trying to convert MIDI events into notes I attempt to deduce the length of the note (e.g. a quarter note)&amp;nbsp;from the number of ticks in which it is played.&amp;nbsp; I guess I treat the 2nd NOTE_ON as an implicit NOTE_OFF for the first note.&amp;nbsp; This makes sense I guess if you consider a piano where the same key is struck a 2nd time.&amp;nbsp; But I wonder how it will sound.&lt;/P&gt;
&lt;P&gt;As an aside David also explains something else that isn&apos;t necessarily intuitive when you read about MIDI:&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style=&quot;MARGIN-RIGHT: 0px&quot;&gt;
&lt;P&gt;A note_off sets the volume to zero and it doesn&apos;t matter what preceded it. BTW most keyboards do not send note_off messages - they send note_on with volume set to zero instead.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I had already had to deal with this issue when I found that there were no NOTE_OFF messages in the MIDI I was analysing.&lt;/P&gt;</description>
			<guid>http://matt.blogs.it/categories/hotWaterMusic/2003/08/25.html#a1108</guid>
			<pubDate>Mon, 25 Aug 2003 08:42:41 GMT</pubDate>
			<comments>http://radiocomments.userland.com/comments?u=107808&amp;amp;p=1108</comments>
			
			</item>
		<item>
			<title>The importance of the sound bank</title>
			<link>http://matt.blogs.it/categories/hotWaterMusic/2003/08/25.html#a1106</link>
			<description>&lt;P&gt;If you start playing with Java MIDI and wonder why the hell your computer sounds like a cheap Casio organ then wonder no longer... go get the &lt;A href=&quot;http://java.sun.com/products/java-media/sound/soundbanks.html&quot;&gt;high quality sound bank&lt;/A&gt;.&amp;nbsp; The difference is in sound quality is very pleasing.&lt;/P&gt;
&lt;P&gt;The default sound bank that ships with the JRE is about 480K for something like 300 &lt;EM&gt;instruments&lt;/EM&gt;&amp;nbsp;whilst the high quality sound bank is 4.92Mb and defines less than 200!&lt;/P&gt;</description>
			<guid>http://matt.blogs.it/categories/hotWaterMusic/2003/08/25.html#a1106</guid>
			<pubDate>Sun, 24 Aug 2003 23:04:17 GMT</pubDate>
			<comments>http://radiocomments.userland.com/comments?u=107808&amp;amp;p=1106</comments>
			
			</item>
		<item>
			<title>How long does this note last?</title>
			<link>http://matt.blogs.it/categories/hotWaterMusic/2003/08/24.html#a1104</link>
			<description>&lt;P&gt;I&apos;ve written a program using the Java MIDI system that attempts to analyse the contents of a music track and interpret it into notes played.&amp;nbsp; The one technical part of this is understanding the concept of PPQN and how it relates to MIDI ticks.&lt;/P&gt;
&lt;P&gt;A tick in a MIDI file is a time-marker which is independent of actual time.&amp;nbsp; All you can say is that tick 0 is at the start of the piece and that tick 1 comes after tick 0 and before tick 2.&amp;nbsp; And so on.&lt;/P&gt;
&lt;P&gt;So how do you know when to play a note?&lt;/P&gt;
&lt;P&gt;This is related to the PPQN value which specifies, for the piece, how many pulses (known interchangably as ticks) make up one quarter note.&amp;nbsp; So a PPQN value of 4 mean that 4 ticks make a quarter note.&lt;/P&gt;
&lt;P&gt;MIDI uses a system of events to specify how the music is played so that there is a NOTE_ON event which specifies on which tick a specific note is to begin playing and a NOTE_OFF event which specifies when it should stop, except&amp;nbsp;when it doesn&apos;t.&amp;nbsp; This is where things get grisly.&lt;/P&gt;
&lt;P&gt;A NOTE_ON event specifies which note is to be played along with something called a velocity.&amp;nbsp; The velocity is a measure of how hard the note is struck (MIDI has a bit of a keyboard which I guess is reflected in that most synthesizers were keyboards).&amp;nbsp; Velocity is certainly related to the amplitude (loudness) of the sound but also to the sound envelope.&lt;/P&gt;
&lt;P&gt;Anyway suffice to say I have discovered that instead of a NOTE_OFF event it is possible to receive a NOTE_ON event with a velocity of 0 instead.&lt;/P&gt;
&lt;P&gt;Okay so at a certain tick value we get a NOTE_ON with a velocity greater than zero, then at another tick value we either get a NOTE_OFF or a NOTE_ON with a velocity of zero.&amp;nbsp; This means that we know the note lasts for a certain number of ticks.&lt;/P&gt;
&lt;P&gt;Using the formula:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;tick_duration / ( 4 * PPQN )&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;we can work out the length, in whole notes, of the specified note.&lt;/P&gt;
&lt;P&gt;I think....&lt;/P&gt;
&lt;P&gt;The reason for my lack of confidence is that the sites I have been reading have confidently predicted that most music is played in whole-note, half-note, quarter-note and so on.&amp;nbsp; Yet just analysing three classical pieces:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A section of Beethovens pastoral symphony&lt;/LI&gt;
&lt;LI&gt;Philip Glass - Metamorphosis#1&lt;/LI&gt;
&lt;LI&gt;Philip Glass - Mad Rush&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;As well as the regular whole notes (1.0), quarter notes (0.25),&amp;nbsp;and, eighth notes (0.125) I have also come across 0.15364583333333334 notes, 0.20833333333333334 notes, and 0.08333333333333333 notes!&lt;/P&gt;
&lt;P&gt;Guess I have more learning to do.&lt;/P&gt;</description>
			<guid>http://matt.blogs.it/categories/hotWaterMusic/2003/08/24.html#a1104</guid>
			<pubDate>Sun, 24 Aug 2003 22:34:40 GMT</pubDate>
			<comments>http://radiocomments.userland.com/comments?u=107808&amp;amp;p=1104</comments>
			
			</item>
		</channel>
	</rss>

