<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Javascript and AudioFiles</title>
		<atom:link href="http://cycling74.com/forums/topic/javascript-and-audiofiles/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 15:59:17 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-24300</guid>
					<title><![CDATA[Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-24300</link>
					<pubDate>Mon, 06 Feb 2006 22:19:49 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all.</p>
<p>I am still puzzled by an efficient method of splitting and merging my  <br />
audio files faster than real-time.  I never thought of using  <br />
Javascript to do so, but it might be a good idea&#8230;  the only problem  <br />
is that I can&#8217;t make any sense of the info I get.</p>
<p>Is there a way to read the file header so I can get the sampling  <br />
rate, the number of channel, according to a certain file type?  Does  <br />
it make sense to do it like this, if I don&#8217;t want to import the file  <br />
in a buffer~?</p>
<p>Any hint will help!</p>
<p>pa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70063</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70063</link>
					<pubDate>Mon, 06 Feb 2006 22:52:35 +0000</pubDate>
					<dc:creator>Patrick Delges</dc:creator>

					<description>
						<![CDATA[
						<p>I started working on JavaScipt code that parses aiff files (I think I <br />
even post it, but I may be wrong &#8211; I can send it to you if you want) <br />
but I stopped because file accesses were just to slow. I think Java is <br />
the way to go (or C), unfortunately, I had no time yet to study enough <br />
Java to start working on this. I&#8217;m sure there must be Java libraries <br />
available to parse sound files.</p>
<p>p</p>
<p>_____________________________<br />
Patrick Delges</p>
<p>Centre de Recherches et de Formation Musicales de Wallonie</p>
<p><a href="http://users.skynet.be/crfmw/max" rel="nofollow">http://users.skynet.be/crfmw/max</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70064</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70064</link>
					<pubDate>Tue, 07 Feb 2006 00:33:09 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>On around Feb 6, 2006, at 23:52, Patrick Delges said something like:<br />
> I started working on JavaScipt code that parses aiff files (I think I <br />
> even post it, but I may be wrong &#8211; I can send it to you if you want) <br />
> but I stopped because file accesses were just to slow. I think Java is <br />
> the way to go (or C)</p>
<p>About ten years ago a guy at Harvard named Ben Denckla put together a <br />
&#8220;AIFF DSP Framework&#8221; that did all the grunt work of handling AIFF files <br />
and gave you a simple micro-API for writing code that played with the <br />
audio data without worrying about headers and stuff.</p>
<p>It ran on SunOS, HP-UX, Ultrix, NeXTStep, OSF, and Mac OS&#8230; I suppose <br />
that was System 7.1 or something.</p>
<p>I built some code with it as recently as six years ago using <br />
Metrowerks. It was not hard. It *was* in C (we&#8217;re talking 1994).</p>
<p>&#8211; P.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8211;    <a href="http://www.bek.no/~pcastine/Litter/" rel="nofollow">http://www.bek.no/~pcastine/Litter/</a>    &#8212;&#8212;&#8212;&#8212;&#8211;<br />
Peter Castine    |                             ^<br />
                  |         Litter Power &#038; Litter Bundle for Jitter<br />
<a href="mailto:pcastine@gmx.net">pcastine@gmx.net</a> |<br />
<a href="mailto:pcastine@bek.no">pcastine@bek.no</a>  | iCE:  Sequencing, Recording, and Interface Building<br />
<a href="mailto:4-15@kagi.com">4-15@kagi.com</a>    |       for Max/MSP<br />
                  |                                      Extremely cool<br />
                  |      <a href="http://www.dspaudio.com" rel="nofollow">http://www.dspaudio.com</a><br />
                  |      <a href="http://www.dspaudio.com/software/software.html" rel="nofollow">http://www.dspaudio.com/software/software.html</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70065</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70065</link>
					<pubDate>Tue, 07 Feb 2006 01:01:55 +0000</pubDate>
					<dc:creator>Thijs Koerselman</dc:creator>

					<description>
						<![CDATA[
						<p>If you&#8217;re considering C , check out libsndfile.</p>
<p><a href="http://www.mega-nerd.com/libsndfile/" rel="nofollow">http://www.mega-nerd.com/libsndfile/</a></p>
<p>It&#8217;s a popular library to read/write all sorts of audiofiles, and I think it<br />
is pretty easy to use.</p>
<p>t_</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70066</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70066</link>
					<pubDate>Tue, 07 Feb 2006 01:34:22 +0000</pubDate>
					<dc:creator>Matthew Aidekman</dc:creator>

					<description>
						<![CDATA[
						<p>pierre,</p>
<p>this has been a subject of debate on the list/forum many times.  more  <br />
on that below.   You should check back in the forum.  I believe  <br />
andrew benson posted an example of using jitter matrices to replicate  <br />
cut copy and paste of AUDIO buffers.</p>
<p>
The debate&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>	The Argument of the people who think this functionality should be  <br />
explicitly  supported on the list is that &#8220;If your coming to max to  <br />
escape commercial software, Max should at least support the  <br />
functionality of the most basic non-real-time audio programs like  <br />
sequencing, cut,copy,merge and paste&#8221;<br />
	The argument of the people who think the functionality should not be  <br />
included are those who believe that rather than focus on max&#8217;s  <br />
ability to replicate existing software, it should focus on being a  <br />
live instrument unto itself.  and if your listening and processing in  <br />
real time, these functions are not the best tools for the job.</p>
<p>Nearly anything is possible in max.  When the folks at C74 post  <br />
examples, you see just how limited by your own knowledge base you  <br />
are.  The example mentioned above really proves this.</p>
<p>Hopefully I was fair and balanced</p>
<p>-matt</p>
<p>.    .    .    .    .    .    .    .    .    .    .    .<br />
Http://www.EstateSound.com<br />
Http://ideasforstuff.blogspot.com<br />
.    .    .    .    .    .    .    .    .    .    .    .</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70067</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70067</link>
					<pubDate>Tue, 07 Feb 2006 03:08:28 +0000</pubDate>
					<dc:creator>Andrew Benson</dc:creator>

					<description>
						<![CDATA[
						<p>for the record, the patch he is referring to is here:</p>
<p><a href="http://cycling74.com/story/2006/2/6/114353/4118" rel="nofollow">http://cycling74.com/story/2006/2/6/114353/4118</a></p>
<p>Recipe 10: BufferOps</p>
<p>:)<br />
AB</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70068</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70068</link>
					<pubDate>Tue, 07 Feb 2006 04:05:47 +0000</pubDate>
					<dc:creator>Jean-Francois Charles</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70069</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70069</link>
					<pubDate>Tue, 07 Feb 2006 12:59:43 +0000</pubDate>
					<dc:creator>nick rothwell / cassiel</dc:creator>

					<description>
						<![CDATA[
						<p>
On 6 Feb 2006, at 22:52, Patrick Delges wrote:</p>
<p>> I&#8217;m sure there must be Java libraries available to parse sound files.</p>
<p>I played with this a year or so ago. The Java Media Framework (JMF)  <br />
is what you&#8217;re after, but you&#8217;re at the mercy of whatever codecs are  <br />
available on your system.</p>
<p>	&#8211; N.</p>
<p>
   nick rothwell &#8212; composition, systems, performance &#8212; http:// <br />
<a href="http://www.cassiel.com" rel="nofollow">http://www.cassiel.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70070</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70070</link>
					<pubDate>Tue, 07 Feb 2006 13:12:37 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70071</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70071</link>
					<pubDate>Tue, 07 Feb 2006 16:15:17 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p>Patrick, Thijs and Nick</p>
<p>Thanks for your help.</p>
<p>> I started working on JavaScipt code that parses aiff files (I think  <br />
> I even post it, but I may be wrong &#8211; I can send it to you if you want)</p>
<p>Patrick, I have not found it in the archives.  Can you please post it  <br />
on the list?</p>
<p>> If you&#8217;re considering C , check out libsndfile.</p>
<p>and</p>
<p>>> I&#8217;m sure there must be Java libraries available to parse sound files.<br />
><br />
> I played with this a year or so ago. The Java Media Framework (JMF)  <br />
> is what you&#8217;re after, but you&#8217;re at the mercy of whatever codecs  <br />
> are available on your system.</p>
<p>I will look into this later today, and post to the list anything I  <br />
can get out of it.  I will probably start with java, so we can use it  <br />
on both platform.</p>
<p>pa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70072</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70072</link>
					<pubDate>Wed, 08 Feb 2006 00:07:24 +0000</pubDate>
					<dc:creator>topher lafata</dc:creator>

					<description>
						<![CDATA[
						<p>If you look in the java-doc/mxj~ examples directory there is<br />
an example of using a class we provide to read audio files into<br />
memory. May or may not be helpful to you.</p>
<p>09.mxj~.audiofilebuf.pat</p>
<p>Topher</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70073</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70073</link>
					<pubDate>Wed, 08 Feb 2006 03:48:43 +0000</pubDate>
					<dc:creator>Nat</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m using the class that Topher suggests and it works pretty well : MUCH faster than reading a file through buffer and sending the sample data to JS.</p>
<p>While we&#8217;re on the suggest, I&#8217;m unable to load sounds longer than 40 minutes, it gives a memory error, is there a way to increase the amount of memory the Java machine can use ?</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70074</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70074</link>
					<pubDate>Wed, 08 Feb 2006 08:49:30 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p>> While we&#8217;re on the suggest, I&#8217;m unable to load sounds longer than  <br />
> 40 minutes, it gives a memory error, is there a way to increase the  <br />
> amount of memory the Java machine can use ?</p>
<p>Probably du to the fact that the index counter is in int?  I will  <br />
report soon&#8230;  Thank you Topher for that indication, I will post my  <br />
results soon.</p>
<p>pa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70075</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70075</link>
					<pubDate>Wed, 08 Feb 2006 09:20:03 +0000</pubDate>
					<dc:creator>Patrick Delges</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70076</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70076</link>
					<pubDate>Wed, 08 Feb 2006 10:55:15 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Topher and all.</p>
<p>2 small questions:</p>
<p>1. When I look at the AudioFileBuffer Class Reference, I cannot see  <br />
any open modes (write, for instance&#8230;)  Does it mean that this class  <br />
opens a file pointer in read mode only?</p>
<p>2. Should we move that thread in java-dev, even if I am a dumb  <br />
newbie ;-)</p>
<p>pa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70077</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70077</link>
					<pubDate>Wed, 08 Feb 2006 13:58:43 +0000</pubDate>
					<dc:creator>Owen Green</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70078</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70078</link>
					<pubDate>Wed, 08 Feb 2006 14:08:19 +0000</pubDate>
					<dc:creator>Owen Green</dc:creator>

					<description>
						<![CDATA[
						<p>
Pierre Alexandre Tremblay wrote:<br />
> 1. When I look at the AudioFileBuffer Class Reference, I cannot see any <br />
> open modes (write, for instance&#8230;)  Does it mean that this class opens <br />
> a file pointer in read mode only?</p>
<p>AFAIK it just fills an in-memory buffer with the audio data, and <br />
provides some read-only meta-data. If you want to write audio data or <br />
have random access from disk then one of JavaSound (pretty basic) or the <br />
Java Media Framework will be the thing, I think.</p>
<p>> 2. Should we move that thread in java-dev</p>
<p>I should have thought so, yes.</p>
<p>Cheers,<br />
Owen</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70079</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70079</link>
					<pubDate>Wed, 08 Feb 2006 15:41:56 +0000</pubDate>
					<dc:creator>Nat</dc:creator>

					<description>
						<![CDATA[
						<p>&#8220;You can change this in max.java.config.txt, in the Java folder of your<br />
C74 directory.&#8221;</p>
<p>Just checked that file and I can&#8217;t seem to find anything related to memory..</p>
<p>Thanks,,<br />
Nat</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70080</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70080</link>
					<pubDate>Wed, 08 Feb 2006 16:26:41 +0000</pubDate>
					<dc:creator>Owen Green</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70081</guid>
					<title><![CDATA[Re: Javascript and AudioFiles]]></title>
					<link>http://cycling74.com/forums/topic/javascript-and-audiofiles/#post-70081</link>
					<pubDate>Wed, 08 Feb 2006 16:38:34 +0000</pubDate>
					<dc:creator>Nat</dc:creator>

					<description>
						<![CDATA[
						<p>&#8220;You need to set the jvm option for the maximum heap size, which is done by passing the switch -Xmx, e.g. -Xmx256m gives you 256 MB.&#8221;</p>
<p>Many thanks !  I changed to 512 and it loads fine now !!</p>
<p>Nat</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

