From jsyn at music.columbia.edu Sun Dec 14 13:23:39 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Mon Dec 15 01:10:21 2008 Subject: [jsyn] capturing audio data to an array of short Message-ID: <49454F2B.3030906@mail.rockefeller.edu> This is a technique that grows cold on me and I have to remind myself how to do it every so often. So I am posting it here as a reminder to myself and anyone else interested. Nick Synth.startEngine(0); int numFrames = 2048; SynthSample sample = new SynthSample(numFrames, 1); SampleWriter_16F1 sampleWriter = new SampleWriter_16F1(); SineOscillator osc = new SineOscillator(); osc.amplitude.set(1); osc.frequency.set(Synth.getFrameRate() / sample.getNumFrames()); osc.start(); osc.output.connect(sampleWriter.input); sampleWriter.start(); sampleWriter.samplePort.queue(sample); short[] data = new short[sample.getNumFrames()]; sample.read(data); try { Thread.sleep(100); // just wait 0.1 sec for things to initialize } catch (InterruptedException e) { e.printStackTrace(); } sample.read(data); try { // wait for the amount of time it takes to play 2048 frames Thread.sleep((long) (1000 * sample.getNumFrames() / Synth.getFrameRate())); } catch (InterruptedException e) { e.printStackTrace(); } // show data for (int i = 0; i < data.length; i++) { System.out.println(i + ", " + data[i]); } From jsyn at music.columbia.edu Wed Dec 17 00:51:11 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Dec 17 00:51:54 2008 Subject: [jsyn] com.softsynth.jsyn.circuits.Reverb1 Message-ID: <4948934F.4020109@mail.rockefeller.edu> Can't believe I never heard Reverb1 which ships with JSyn. It's kind of nifty. Here's a SynthNote subclass that might make it easier for a JSyn beginner to try it. The main() method puts a dry signal in the left and the reverb on the right. Nick /* * Created on Dec 17, 2008 by Nick Didkovsky * */ package com.didkovsky.javamusic; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import com.softsynth.jsyn.*; import com.softsynth.jsyn.circuits.Reverb1; public class Reverb2 extends SynthNote { private Reverb1 reverb1; private BusWriter busWriter; public SynthInput input; public Reverb2() { add(reverb1 = new Reverb1()); add(busWriter = new BusWriter()); addPort(input = busWriter.input); addPort(output = reverb1.output); reverb1.busInput.connect(0, busWriter.busOutput, 0); } public static void main(String[] args) { Synth.startEngine(0); SynthObject.enableTracking(true); LineOut out = new LineOut(); out.start(); // sine for dry signal in left channel SineOscillator osc = new SineOscillator(); osc.amplitude.set(0.5); osc.start(); MultiplyUnit mult = new MultiplyUnit(); mult.start(); // toss a multiplier in to reduce dry signal level, cheap mixing... mult.inputA.set(0.5); osc.output.connect(mult.inputB); mult.output.connect(0, out.input, 0); // lag to sweep sine's frequency around so we can hear reverb ExponentialLag lag = new ExponentialLag(); lag.input.set(100); lag.halfLife.set(0.2); lag.output.connect(osc.frequency); lag.input.set(1000); lag.start(); // connect our reverb to right channel Reverb2 reverb2 = new Reverb2(); reverb2.start(); reverb2.output.connect(0, out.input, 1); // connect dry signal to reverb osc.output.connect(reverb2.input); Frame f = new Frame(); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { Synth.stopEngine(); System.exit(0); } }); f.setSize(320, 200); f.setVisible(true); // wake up every so often and sweep to a new frequency while (true) { try { Thread.sleep((long) (Math.random() * 3000 + 500)); } catch (InterruptedException e1) { } double freq = Math.random() * 2000; lag.input.set(freq); System.out.println("sweeping to " + freq + " Hz"); } } } From jsyn at music.columbia.edu Fri Dec 19 20:14:08 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Dec 19 19:11:54 2008 Subject: [jsyn] Getting most recent streaming samples Message-ID: Hello, I'm using SampleQueueInputStream to occasioanlly capture samples off a SynthInput. The queue is FIFO so access provides for retrieving the oldest numFrames number of samples in the queue (a user provides numFrames when calling read). I'm interested in getting the most recent numFrames samples (e.g. the last two seconds of audio) in the data structure, in essence looking for a LIFO implementation of the same. Has anyone produced as much? Any other ideas as to how get at this? I believe the SampleQueueStream code is non-native so presumably I could simply write my own in Java but I must admit, that code looks like a bit of chore to hack through... Thanks - C>T> From jsyn at music.columbia.edu Fri Dec 19 20:17:36 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Dec 19 20:17:47 2008 Subject: [jsyn] Getting most recent streaming samples In-Reply-To: References: Message-ID: <494C47B0.8090302@softsynth.com> Hi C>T> > I'm interested in getting the most recent numFrames samples (e.g. the > last two seconds of audio) in the data structure, in essence looking > for a LIFO implementation of the same. Make a sample that is more than 2 seconds long. Try 3 seconds. queueLoop() to a SampleWriter's samplePort. Occasionally query samplePort.getNumFramesMoved() http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/SynthDataQueue.html Calculate where you are currently in the sample modulo the sample size in frames. Read the latest data out of the sample. Be prepare to handle it wrapping around the end of the sample. Thank you, Phil Burk --------------------------------------- SoftSynth, Audio Research and Development http://www.softsynth.com/ 75 Pleasant Lane, San Rafael, CA, 94901 USA Office: +1-415-453-4320 Mobile: +1-415-846-4370 FAX: +1-415-373-4428 --------------------------------------- jsyn@music.columbia.edu wrote: > Hello, > > I'm using SampleQueueInputStream to occasioanlly capture samples off > a SynthInput. The queue is FIFO so access provides for retrieving > the oldest numFrames number of samples in the queue (a user provides > numFrames when calling read). > > I'm interested in getting the most recent numFrames samples (e.g. the > last two seconds of audio) in the data structure, in essence looking > for a LIFO implementation of the same. > > Has anyone produced as much? > > Any other ideas as to how get at this? > > I believe the SampleQueueStream code is non-native so presumably I > could simply write my own in Java but I must admit, that code looks > like a bit of chore to hack through... > > Thanks - > > C>T> > > _______________________________________________ JSyn mailing list > JSyn@music.columbia.edu To change digest mode or to make other > administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > > From jsyn at music.columbia.edu Fri Dec 19 20:21:46 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Dec 19 20:22:00 2008 Subject: [jsyn] Getting most recent streaming samples In-Reply-To: References: Message-ID: <494C48AA.7000005@mail.rockefeller.edu> Did you see my posting on the 12/14/08 with the subject "capturing audio data to an array of short"? In that little example, data[] always contains the most recent samples Not sure if that fits what you want but it sounds close to me Nick jsyn@music.columbia.edu wrote: > Hello, > > I'm using SampleQueueInputStream to occasioanlly capture samples off a > SynthInput. The queue is FIFO so access provides for retrieving the oldest > numFrames number of samples in the queue (a user provides numFrames when > calling read). > > I'm interested in getting the most recent numFrames samples (e.g. the last > two seconds of audio) in the data structure, in essence looking for a LIFO > implementation of the same. > > Has anyone produced as much? > > Any other ideas as to how get at this? > > I believe the SampleQueueStream code is non-native so presumably I could > simply write my own in Java but I must admit, that code looks like a bit of > chore to hack through... > > Thanks - > > C>T> > > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > From jsyn at music.columbia.edu Fri Dec 19 21:41:43 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Dec 19 20:39:28 2008 Subject: [jsyn] Getting most recent streaming samples In-Reply-To: <494C47B0.8090302@softsynth.com> Message-ID: Great. Never used queueloop before for writing so hadn't thought of that. Thanks for the tip. Yeah, Nick - I saw your previous code too (great post)...thought I'd try the streaming solution but this looks like equivalent for all intents and purposes... Thanks, guys and best of holidays, Jsyn-ers - C>T> On 12/19/08 7:17 PM, "jsyn@music.columbia.edu" wrote: > Hi C>T> > >> I'm interested in getting the most recent numFrames samples (e.g. the >> last two seconds of audio) in the data structure, in essence looking >> for a LIFO implementation of the same. > > Make a sample that is more than 2 seconds long. Try 3 seconds. > > queueLoop() to a SampleWriter's samplePort. > > Occasionally query samplePort.getNumFramesMoved() > > http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/SynthDataQueue. > html > > Calculate where you are currently in the sample modulo the sample size > in frames. > > Read the latest data out of the sample. Be prepare to handle it wrapping > around the end of the sample. > > Thank you, > Phil Burk > --------------------------------------- > SoftSynth, Audio Research and Development > http://www.softsynth.com/ > 75 Pleasant Lane, San Rafael, CA, 94901 USA > Office: +1-415-453-4320 > Mobile: +1-415-846-4370 > FAX: +1-415-373-4428 > --------------------------------------- > > > jsyn@music.columbia.edu wrote: >> Hello, >> >> I'm using SampleQueueInputStream to occasioanlly capture samples off >> a SynthInput. The queue is FIFO so access provides for retrieving >> the oldest numFrames number of samples in the queue (a user provides >> numFrames when calling read). >> >> I'm interested in getting the most recent numFrames samples (e.g. the >> last two seconds of audio) in the data structure, in essence looking >> for a LIFO implementation of the same. >> >> Has anyone produced as much? >> >> Any other ideas as to how get at this? >> >> I believe the SampleQueueStream code is non-native so presumably I >> could simply write my own in Java but I must admit, that code looks >> like a bit of chore to hack through... >> >> Thanks - >> >> C>T> >> >> _______________________________________________ JSyn mailing list >> JSyn@music.columbia.edu To change digest mode or to make other >> administrative changes visit: >> http://music.columbia.edu/mailman/listinfo/jsyn >> >> > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn From jsyn at music.columbia.edu Fri Dec 26 17:14:06 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Dec 26 17:14:21 2008 Subject: [jsyn] Java Music Systems, Fall 2008, Final Projects by students Message-ID: <4955572E.6010202@mail.rockefeller.edu> Java Music Systems, Fall 2008, Final Projects by students NYU Steinhardt, Dept of Music and Performing Arts Professions On Dec 16, 2008 students in Nick Didkovsky's Java Music Systems class at NYU presented their final projects. Descriptions below are by the students commenting on their own work. URL?s are provided where appropriate. Polyrhythm Applet by Karl Mattias Konrad ?Inspired by music theory from India, where rhythm plays a decisive role, the Polyrhythm Applet can be used to train or show transitions between subdivisions of a beat, or transitions between different groupings. The applet splits a steady beat of a given tempo into subdivisions, groups them in patterns and plays the patterns against the metronome. The user can manually define tempo, subdivision, grouping, and pattern, or use the default pattern and tempo, and make the applet create a random set of subdivisions and groupings. A visual counter provides extra information about the audible outcome.? http://www.matthiaskonrad.com/PolyRhythms Ambient Music Generator Applet by Chris Polcyn ?This Java applet is a continuous ambient music generator, incorporating JSyn and JMSL. A simple click of a button will produce a steady stream of ambient music as the listener is lulled to sleep. Simplistic and minimal design are key for keeping the sound low-profile and in the background.? http://homepages.nyu.edu/~cmp433/javamusic/finalproject/ Sound Design and Panning Effects with JSyn and JMSL by Kyle Vaughn ?The sound design creates an eerie mood and features the use of the signal processing capabilities of JSyn to create stereo panning effects. My main goal with this project was to create a minimalist sound design piece that focused on the signal processing tools in JSyn. I began with adjusting and tweaking with sounds created in Wire. Once I found something I liked they were all loaded together in an applet. I had no predetermined ideas of how the sounds would go together. I simply found individual sounds I liked and then adjusted them more once they were playing all together. The behaviors of the synth notes are called upon randomly. However, they are randomly called with in a set of boundaries so the behaviors are somewhat predictable. The signal processing instruments used are a delay and frequency delay with in the JMSL API. Two of same delays are used in an effort to create a stereo panning effect. When an instrument called ?plucked delay? is called the ?dry? signal happens first, which is panned all the way to the left side. Then a frequency delay signal processer is used to move the ?plucked delay? to the center. Finally the output of both the ?plucked delay? and the frequency delay is sent to a delay signal processer, which panned all the way to the right. ? http://www.kylevaughn.com/JavaMusicSystems/Final/Final.html Implementation of an Isolated Hummed Notes Pitch Detector in Java by Loreto Sanchez ?My project consists in a pitch detector in real time for a singing note. The program captures the sound, performs the FFT analysis, the Spectral Autocorrelation, peak picking to detect the index with the highest peak and pitch determination.? http://homepages.nyu.edu/~mls548/JavaMusicSystems/finalproject.html Regarding Time by Adam Rokhsar ?The goal of Regarding Time was to create an aesthetically meaningful interaction between JMSL and Max/MSP/Jitter. Audio features are extracted from a piece Violin in Max/MSP, which interact with data stored in a MusicShape to control video parameters. By having JMSL change parameters at Max speed on MSP data used to drive video, I was able to produce something in a more elegant way with JMSL and Max than I could have with Max alone.? N8-BIT DM by Nataniel Rodriguez ?N8-Bit DM is a virtual analogue drum machine consisting of 5 sound sources emulating a kick, snare, high hat, percussion, and tom respectively, each with their own pitch envelope. Each part can be triggered in 3 different ways: through QWERTY keystrokes (1, 2, 3, 4, and5 keys), MIDI note input (notes 60 through 64), or automatically through JMSL MusicShapes. MusicShape control is based on Nick Didkovsky?s Max/JAVA tutorial patches and classes, except for a few modifications, mostly done on the Max patch side. Using the MusicShape editor, patterns and variations of such patterns can be created in real-time.? Random Music Generator By Chi Kim ?This project is to make a music generator which lets users to control some of its parameters to generate random music shapes. In that sense, the title is misleading, because the process of generating random shapes is not purely controlled by computer. The users can specify his/her taste in run time, and the computer will loosely match the parameters.? From jsyn at music.columbia.edu Sat Dec 27 15:43:24 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Dec 27 15:43:59 2008 Subject: [jsyn] [jmsl] Fall 2008, Final Projects by students In-Reply-To: <4955572E.6010202@mail.rockefeller.edu> References: <4955572E.6010202@mail.rockefeller.edu> Message-ID: <8CB367AE5E46142-84C-2EA@webmail-dd05.sysops.aol.com> Very nice stuff here. Very sophisticated and they all work well. I will be playing with the Polyrhythm Applet for the next month. Note: What happened to the links for the last 3 projects? John Clavin -----Original Message----- From: jsyn@music.columbia.edu To: jmsl@music.columbia.edu; jsyn@music.columbia.edu Sent: Fri, 26 Dec 2008 2:14 pm Subject: [jsyn] Java Music Systems, Fall 2008, Final Projects by students Java Music Systems, Fall 2008, Final Projects by students? NYU Steinhardt, Dept of Music and Performing Arts Professions? ? On Dec 16, 2008 students in Nick Didkovsky's Java Music Systems class at NYU presented their final projects. Descriptions below are by the students commenting on their own work. URL?s are provided where appropriate.? ? Polyrhythm Applet? by Karl Mattias Konrad? ?Inspired by music theory from India, where rhythm plays a decisive role, the Polyrhythm Applet can be used to train or show transitions between subdivisions of a beat, or transitions between different groupings. The applet splits a steady beat of a given tempo into subdivisions, groups them in patterns and plays the patterns against the metronome. The user can manually define tempo, subdivision, grouping, and pattern, or use the default pattern and tempo, and make the applet create a random set of subdivisions and groupings. A visual counter provides extra information about the audible outcome.?? http://www.matthiaskonrad.com/PolyRhythms? ? Ambient Music Generator AppletC2 by Chris Polcyn? ?This Java applet is a continuous ambient music generator, incorporating JSyn and JMSL. A simple click of a button will produce a steady stream of ambient music as the listener is lulled to sleep. Simplistic and minimal design are key for keeping the sound low-profile and in the background.?? http://homepages.nyu.edu/~cmp433/javamusic/finalproject/? ? Sound Design and Panning Effects with JSyn and JMSL? by Kyle Vaughn? ?The sound design creates an eerie mood and features the use of the signal processing capabilities of JSyn to create stereo panning effects. My main goal with this project was to create a minimalist sound design piece that focused on the signal processing tools in JSyn. I began with adjusting and tweaking with sounds created in Wire. Once I found something I liked they were all loaded together in an applet. I had no predetermined ideas of how the sounds would go together. I simply found individual sounds I liked and then adjusted them more once they were playing all together. The behaviors of the synth notes are called upon randomly. However, they are randomly called with in a set of boundaries so the behaviors are somewhat predictable. The signal processing instruments used are a delay and frequency delay with in the JMSL API. Two of same delays are used in an effort to create a stereo panning effect. When an instrument called ?plucked delay? is called the ?dry? signal happens first, which is panned all the way to the left side. Then a frequency delay signal processer is used to move the ?plucked delay? to the center. Finally the output of both the ?plucked delay? and the frequency delay is sent to a delay signal processer, which panned all the way to the right. ?? http://www.kylevaughn.com/JavaMusicSystems/Final/Final.html? ? Implementation of an Isolated Hummed Notes Pitch Detector in Java? by Loreto Sanchez? ?My project consists in a pitch detector in real time for a singing note. The program captures the sound, performs the FFT analysis, the Spectral Autocorrelation, peak picking to detect the index with the highest peak and pitch determination.?? http://homepages.nyu.edu/~mls548/JavaMusicSystems/finalproject.html? ? Regarding Time? by Adam Rokhsar? ?The goal of Regarding Time was to create an aesthetically meaningful interaction between JMSL and Max/MSP/Jitter. Audio features are extracted from a piece Violin in Max/MSP, which interact with data stored in a MusicShape to control video parameters. By having JMSL change parameters at Max speed on MSP data used to drive video, I was able to produce something in a more elegant way with JMSL and Max than I could have with Max alone.?? ? N8-BIT DM? by Nataniel Rodriguez? ?N8-Bit DM is a virtual analogue drum machine consisting of 5 sound sources emulating a kick, snare, high hat, percussion, and tom respectively, each with their own pitch envelope. Each part can be triggered in 3 different ways: through QWERTY keystrokes (1, 2, 3, 4, and5 keys), MIDI note input (notes 60 through 64), or automatically through JMSL MusicShapes. MusicShape control is based on Nick Didkovsky?s Max/JAVA tutorial patches and classes, except for a few modifications, mostly done on the Max patch side. Using the MusicShape editor, patterns and variations of such patterns can be created in real-time.?? ? Random Music Generator? By Chi Kim? ?This project is to make a music generator which lets users to control some of its parameters to generate random music shapes. In that sense, the title is misleading, because the process of generating random shapes is not purely controlled by computer. The users can specify his/her taste in run time, and the computer will loosely match the parameters.?? ? ? _______________________________________________? JSyn mailing list? JSyn@music.columbia.edu? To change digest mode or to make other administrative changes visit:? http://music.columbia.edu/mailman/listinfo/jsyn? From jsyn at music.columbia.edu Sat Dec 27 17:22:25 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Dec 27 17:23:00 2008 Subject: [jsyn] [jmsl] Fall 2008, Final Projects by students In-Reply-To: <8CB367AE5E46142-84C-2EA@webmail-dd05.sysops.aol.com> References: <4955572E.6010202@mail.rockefeller.edu> <8CB367AE5E46142-84C-2EA@webmail-dd05.sysops.aol.com> Message-ID: <4956AAA1.8040409@mail.rockefeller.edu> Thanks John! Two of the last ones use Max/MSP so there's no applet involved. The other is a standalone app which could be rewritten as an applet but the student decided not to. Best Nick jsyn@music.columbia.edu wrote: > Very nice stuff here. Very sophisticated and they all work well. > > I will be playing with the Polyrhythm Applet for the next month. > > Note: What happened to the links for the last 3 projects? > > John Clavin > > > -----Original Message----- > From: jsyn@music.columbia.edu > To: jmsl@music.columbia.edu; jsyn@music.columbia.edu > Sent: Fri, 26 Dec 2008 2:14 pm > Subject: [jsyn] Java Music Systems, Fall 2008, Final Projects by students > > > Java Music Systems, Fall 2008, Final Projects by students > NYU Steinhardt, Dept of Music and Performing Arts Professions > > On Dec 16, 2008 students in Nick Didkovsky's Java Music Systems class at NYU presented their final projects. Descriptions below are by the students commenting on their own work. URL?s are provided where appropriate. > > Polyrhythm Applet > by Karl Mattias Konrad > ?Inspired by music theory from India, where rhythm plays a decisive role, the Polyrhythm Applet can be used to train or show transitions between subdivisions of a beat, or transitions between different groupings. The applet splits a steady beat of a given tempo into subdivisions, groups them in patterns and plays the patterns against the metronome. The user can manually define tempo, subdivision, grouping, and pattern, or use the default pattern and tempo, and make the applet create a random set of subdivisions and groupings. A visual counter provides extra information about the audible outcome.? > http://www.matthiaskonrad.com/PolyRhythms > > Ambient Music Generator AppletC2 > by Chris Polcyn > ?This Java applet is a continuous ambient music generator, incorporating JSyn and JMSL. A simple click of a button will produce a steady stream of ambient music as the listener is lulled to sleep. Simplistic and minimal design are key for keeping the sound low-profile and in the background.? > http://homepages.nyu.edu/~cmp433/javamusic/finalproject/ > > Sound Design and Panning Effects with JSyn and JMSL > by Kyle Vaughn > ?The sound design creates an eerie mood and features the use of the signal processing capabilities of JSyn to create stereo panning effects. My main goal with this project was to create a minimalist sound design piece that focused on the signal processing tools in JSyn. I began with adjusting and tweaking with sounds created in Wire. Once I found something I liked they were all loaded together in an applet. I had no predetermined ideas of how the sounds would go together. I simply found individual sounds I liked and then adjusted them more once they were playing all together. The behaviors of the synth notes are called upon randomly. However, they are randomly called with in a set of boundaries so the behaviors are somewhat predictable. The signal processing instruments used are a delay and frequency delay with in the JMSL API. Two of same delays are used in an effort to create a stereo panning effect. When an instrument called ?plucked delay? is called the ?dry? signal happens first, which is panned all the way > to the left side. Then a frequency delay signal processer is used to move the ?plucked delay? to the center. Finally the output of both the ?plucked delay? and the frequency delay is sent to a delay signal processer, which panned all the way to the right. ? > http://www.kylevaughn.com/JavaMusicSystems/Final/Final.html > > Implementation of an Isolated Hummed Notes Pitch Detector in Java > by Loreto Sanchez > ?My project consists in a pitch detector in real time for a singing note. The program captures the sound, performs the FFT analysis, the Spectral Autocorrelation, peak picking to detect the index with the highest peak and pitch determination.? > http://homepages.nyu.edu/~mls548/JavaMusicSystems/finalproject.html > > Regarding Time > by Adam Rokhsar > ?The goal of Regarding Time was to create an aesthetically meaningful interaction between JMSL and Max/MSP/Jitter. Audio features are extracted from a piece Violin in Max/MSP, which interact with data stored in a MusicShape to control video parameters. By having JMSL change parameters at Max speed on MSP data used to drive video, I was able to produce something in a more elegant way with JMSL and Max than I could have with Max alone.? > > N8-BIT DM > by Nataniel Rodriguez > ?N8-Bit DM is a virtual analogue drum machine consisting of 5 sound sources emulating a kick, snare, high hat, percussion, and tom respectively, each with their own pitch envelope. Each part can be triggered in > 3 different ways: through QWERTY keystrokes (1, 2, 3, 4, and5 keys), MIDI note input (notes 60 through 64), or automatically through JMSL MusicShapes. MusicShape control is based on Nick Didkovsky?s Max/JAVA tutorial patches and classes, except for a few modifications, mostly done on the Max patch side. Using the MusicShape editor, patterns and variations of such patterns can be created in real-time.? > > Random Music Generator > By Chi Kim > ?This project is to make a music generator which lets users to control some of its parameters to generate random music shapes. In that sense, the title is misleading, because the process of generating random shapes is not purely controlled by computer. The users can specify his/her taste in run time, and the computer will loosely match the parameters.? > > > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > From jsyn at music.columbia.edu Sun Dec 28 21:24:36 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sun Dec 28 21:24:45 2008 Subject: [jsyn] Audio suddenly dies after a few minutes Message-ID: <21272260.1230517476980.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> Hello, After about two or so minutes of running the audio suddenly dies in my JSyn app for inexplicable reasons. The non JSyn components continue to run: e.g. my Swing GUI events, keyboard interrupts). There are no error messages displayed. Polling the Synth engine for Usage after the audio dies reveals that the engine is still running, albeit with a slightly lighter load perhaps (from about .13 to .12). Any ideas what sorts of things might cause this and where I might start to look? thanks, C>T> From jsyn at music.columbia.edu Sun Dec 28 21:28:22 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sun Dec 28 21:28:39 2008 Subject: [jsyn] Audio suddenly dies after a few minutes In-Reply-To: <21272260.1230517476980.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> References: <21272260.1230517476980.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> Message-ID: <495835C6.6010303@mail.rockefeller.edu> You are probably instantiating Synth objects in main() which are getting garbage collected. To prevent that from happening, do this: SynthObject.enableTracking(true) See http://www.softsynth.com/jsyn/support/programming.html ( "If units suddenly stop making sound ... " ) Nick jsyn@music.columbia.edu wrote: > Hello, > > After about two or so minutes of running the audio suddenly dies in my JSyn app for inexplicable reasons. The non JSyn components continue to run: e.g. my Swing GUI events, keyboard interrupts). There are no error messages displayed. Polling the Synth engine for Usage after the audio dies reveals that the engine is still running, albeit with a slightly lighter load perhaps (from about .13 to .12). > > Any ideas what sorts of things might cause this and where I might start to look? > > thanks, > > C>T> > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > From jsyn at music.columbia.edu Sun Dec 28 21:36:04 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sun Dec 28 21:36:13 2008 Subject: [jsyn] Audio suddenly dies after a few minutes Message-ID: <12671795.1230518165601.JavaMail.root@elwamui-rubis.atl.sa.earthlink.net> so true...rookie mistake...thanks, Nick - C>T> -----Original Message----- >From: jsyn@music.columbia.edu >Sent: Dec 28, 2008 9:28 PM >To: "jsyn@music.columbia.edu" >Subject: Re: [jsyn] Audio suddenly dies after a few minutes > >You are probably instantiating Synth objects in main() which are getting >garbage collected. >To prevent that from happening, do this: >SynthObject.enableTracking(true) > >See http://www.softsynth.com/jsyn/support/programming.html ( "If units >suddenly stop making sound ... " ) > >Nick > >jsyn@music.columbia.edu wrote: >> Hello, >> >> After about two or so minutes of running the audio suddenly dies in my JSyn app for inexplicable reasons. The non JSyn components continue to run: e.g. my Swing GUI events, keyboard interrupts). There are no error messages displayed. Polling the Synth engine for Usage after the audio dies reveals that the engine is still running, albeit with a slightly lighter load perhaps (from about .13 to .12). >> >> Any ideas what sorts of things might cause this and where I might start to look? >> >> thanks, >> >> C>T> >> _______________________________________________ >> JSyn mailing list >> JSyn@music.columbia.edu >> To change digest mode or to make other administrative changes visit: >> http://music.columbia.edu/mailman/listinfo/jsyn >> >_______________________________________________ >JSyn mailing list >JSyn@music.columbia.edu >To change digest mode or to make other administrative changes visit: >http://music.columbia.edu/mailman/listinfo/jsyn From jsyn at music.columbia.edu Wed Dec 31 14:09:27 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Dec 31 14:09:37 2008 Subject: [jsyn] JSyn DLL on Vista 64 In-Reply-To: References: Message-ID: <495BC367.7080600@softsynth.com> Edward Childs wrote: > Hello, > > I followed the instructions for installing JSyn on a new PC running Vista > Ultimate 64 bit. > > I put the DLL in the system32 directory and added the external archives. > However, I got the following error, any ideas how it can be fixed? > > Many thanks, > > Edward (Edward's letter was rejected because the attachment was too large.) The instructions here http://www.softsynth.com/jsyn/plugins/install_vista.php say to put the DLL in "C:\Program Files\Java\jre6\bin" Have you tried that? If there is still a problem then perhaps Vista 64 needs a special 64 bit build of the DLL. Vista has been causing us lots of problems. This is another reason to replace the native DLL with a pure Java implementation. I would like to get rid of the native code entirely because it is a huge headache. In 1997 we needed it but not in 2009. Thank you, Phil Burk --------------------------------------- SoftSynth, Audio Research and Development http://www.softsynth.com/ 75 Pleasant Lane, San Rafael, CA, 94901 USA Office: +1-415-453-4320 Mobile: +1-415-846-4370 FAX: +1-415-373-4428 --------------------------------------- From jsyn at music.columbia.edu Wed Dec 31 15:21:29 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Dec 31 15:21:36 2008 Subject: [jsyn] JSyn DLL on Vista 64 In-Reply-To: <495BC367.7080600@softsynth.com> References: <495BC367.7080600@softsynth.com> Message-ID: <495BD449.8080109@edwardchilds.com> Phil, Thanks for the response! When my application failed to work, I came across the Vista instructions while seeing if I could get the browser plug in to work. When I took care of that, by Eclipse set up worked just fine. I withdrew this question, but I guess you saw it anyway! However, I am still having trouble getting Java set up on my browser in order to test the JSyn plugin. That, however, is not a JSyn issue so I don't expect any response! Best regards, Edward jsyn@music.columbia.edu wrote: > Edward Childs wrote: > > Hello, > > > > I followed the instructions for installing JSyn on a new PC running > Vista > > Ultimate 64 bit. > > > > I put the DLL in the system32 directory and added the external > archives. > > However, I got the following error, any ideas how it can be fixed? > > > > Many thanks, > > > > Edward > > (Edward's letter was rejected because the attachment was too large.) > > The instructions here > > http://www.softsynth.com/jsyn/plugins/install_vista.php > > say to put the DLL in > > "C:\Program Files\Java\jre6\bin" > > Have you tried that? > > If there is still a problem then perhaps Vista 64 needs a special 64 > bit build of the DLL. Vista has been causing us lots of problems. > > This is another reason to replace the native DLL with a pure Java > implementation. I would like to get rid of the native code entirely > because it is a huge headache. In 1997 we needed it but not in 2009. > > Thank you, > Phil Burk > --------------------------------------- > SoftSynth, Audio Research and Development > http://www.softsynth.com/ > 75 Pleasant Lane, San Rafael, CA, 94901 USA > Office: +1-415-453-4320 > Mobile: +1-415-846-4370 > FAX: +1-415-373-4428 > --------------------------------------- > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > -- Edward Childs (802) 765-4542 Home (802) 280-6151 Work (802) 738-2271 Cell (802) 296-2325 (Use Cover Page Addressed to Me)