Re: [Jchat] Turtle Graphics
I had missed the help/txt file with examples. It takes some time to figure out what to type in the frame and what in terminal and also be in the tgsj locale. This is quite interesting. Explains a lot of problems I was having. I see the examples from the lab may very possibly be redone with this info. I only now discovered this info and have not had time to try it out yet but it looks good. On 6 Dec 2014 15:12, Björn Helgason gos...@gmail.com wrote: I have been playing with the turtles a bit. Getting ideas what to try from the old lab. It is very interesting to try this out and I am beginning to understand it some. Some ideas and examples would be good. Single commands seem to work but combining them is not as easy as the old lab did. -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] [Jprogramming] NYCJUG 18:30 9/9/2014, Empire State Building NYC
I know you do your dates differently from us; 9/9/2014 is one of those that should be the same either side of the pond, but hasn't it already happened? We go to the Prince of Wales pub quiz in Highgate, London on Tuesdays, but have a good one anyway! Mike On 06/12/2014 15:26, Devon McCormick wrote: We'll be wrapping up our 10th year of meetings with our meeting this Tuesday. --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com - No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4235/8693 - Release Date: 12/06/14 -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] Turtle Graphics
That ,; is a typo and should be ,: . Thanks. You are also correct that in a couple of places I incorrectly warn that commands must NOT be typed in the Turtle frame, when they are turtle commands and can be. I'll fix those soon. Your other observations are valuable, also. Thanks, On Sun, Dec 7, 2014 at 10:21 AM, Björn Helgason gos...@gmail.com wrote: The example: 0 1 tc (Yellow,Yellow,Yellow),;Blue,Blue,Blue Should possbly be: 0 1 tc (Yellow,Yellow,Yellow),:Blue,Blue,Blue At least the former gives length error and the latter seems to work correctly. I am not sure if the info when to issue the command in jijx or the turtle frame is correct in the help. I tried the frames too but I like better to have jijx in a separate window and not separate tab. That way I can have the windows side by side and sometime toggle the jijx into max when needed. You can have several tabs too. The repeats and do are nice. On 7 Dec 2014 08:55, Björn Helgason gos...@gmail.com wrote: I had missed the help/txt file with examples. It takes some time to figure out what to type in the frame and what in terminal and also be in the tgsj locale. This is quite interesting. Explains a lot of problems I was having. I see the examples from the lab may very possibly be redone with this info. I only now discovered this info and have not had time to try it out yet but it looks good. On 6 Dec 2014 15:12, Björn Helgason gos...@gmail.com wrote: I have been playing with the turtles a bit. Getting ideas what to try from the old lab. It is very interesting to try this out and I am beginning to understand it some. Some ideas and examples would be good. Single commands seem to work but combining them is not as easy as the old lab did. -- For information about J forums see http://www.jsoftware.com/forums.htm -- (B=) -my sig Brian Schott -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] [Jprogramming] NYCJUG 18:30 9/9/2014, Empire State Building NYC
Oops - yes, it's 12/9 - December 9th. On Sun, Dec 7, 2014 at 5:55 AM, Mike Day mike_liz@tiscali.co.uk wrote: I know you do your dates differently from us; 9/9/2014 is one of those that should be the same either side of the pond, but hasn't it already happened? We go to the Prince of Wales pub quiz in Highgate, London on Tuesdays, but have a good one anyway! Mike On 06/12/2014 15:26, Devon McCormick wrote: We'll be wrapping up our 10th year of meetings with our meeting this Tuesday. --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com - No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4794 / Virus Database: 4235/8693 - Release Date: 12/06/14 -- For information about J forums see http://www.jsoftware.com/forums.htm -- Devon McCormick, CFA -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jchat] Music one-liners
Can we do better than this? http://countercomplex.blogspot.com.au/2011/10/algorithmic-symphonies-from-one-line-of.html (Here, writing to /dev/audio on a unix system - warning: some of them are discordant.) -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] Music one-liners
If I generate a sine wave in J, x =. 1 o. 0.4 * i.100 How do I cause it to be played out the speaker? I searched the J Software site for sound, audio, music, etc., no luck. Skip Skip Cave On Sun, Dec 7, 2014 at 1:50 PM, Raul Miller rauldmil...@gmail.com wrote: Can we do better than this? http://countercomplex.blogspot.com.au/2011/10/algorithmic-symphonies-from-one-line-of.html (Here, writing to /dev/audio on a unix system - warning: some of them are discordant.) -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] Music one-liners
On windows, this should work: http://www.jsoftware.com/pipermail/programming/2014-June/037891.html On Dec 7, 2014 7:50 PM, Raul Miller rauldmil...@gmail.com wrote: You're on windows, so there's no way that you can get /dev/audio working, that I know of. I think your best option is to use j 6.02 and the media/wav addon. This addon has not yet been ported to j 8.03. I'm not sure why. I copied the text of media/wav from a j 6.02 session to a j 8.03 windows 64 script, and it worked just fine, in the experiments I tried. Anyways, once you have that loaded, you could try something like: 4 wavplay wavmake .128+ 128*1 o. 0.4 * i.100 Though that's a bit short, so maybe instead 4 wavplay wavmake .128+ 128*1 o. 0.4 * i.2000 Note also that the one-liners referred to in the original article seemed to be using a character representation for amplitude, along with a fixed sample rate. That's what I imagine the putchar and pipe to /dev/audio meant, though I've not actually tried running their code. The equivalent, here, would probably require something like: putchar=: 4 wavplay wavemake ... and a self imposed limit of numbers which are valid a. indices. Thanks, -- Raul On Sun, Dec 7, 2014 at 7:02 PM, Skip Cave s...@caveconsulting.com wrote: If I generate a sine wave in J, x =. 1 o. 0.4 * i.100 How do I cause it to be played out the speaker? I searched the J Software site for sound, audio, music, etc., no luck. Skip Skip Cave On Sun, Dec 7, 2014 at 1:50 PM, Raul Miller rauldmil...@gmail.com wrote: Can we do better than this? http://countercomplex.blogspot.com.au/2011/10/algorithmic-symphonies-from-one-line-of.html (Here, writing to /dev/audio on a unix system - warning: some of them are discordant.) -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jchat] Music one-liners
Joe's Beep function works in J8.03. However, I haven't figured out what all the parameters do, though it seems like the frequency and duration of tones can be varied. Unfortunately, it looks like there is no control of the waveform shape. It seems to only generate sine waves. I couldn't find the media/wav folder Raul talked about, anywhere in J 6.02. I found this file: qtmedia_audioengine.dll in the J64-8.03/bin/media directory. The name sounds promising, but I couldn't find any doc on it, anywhere. Generally, I want to define arbitrary waveforms in J usng integer or floating vectors, and then play the result out the speakers. Skip On Sun, Dec 7, 2014 at 7:42 PM, Joe Bogner joebog...@gmail.com wrote: On windows, this should work: http://www.jsoftware.com/pipermail/programming/2014-June/037891.html On Dec 7, 2014 7:50 PM, Raul Miller rauldmil...@gmail.com wrote: You're on windows, so there's no way that you can get /dev/audio working, that I know of. I think your best option is to use j 6.02 and the media/wav addon. This addon has not yet been ported to j 8.03. I'm not sure why. I copied the text of media/wav from a j 6.02 session to a j 8.03 windows 64 script, and it worked just fine, in the experiments I tried. Anyways, once you have that loaded, you could try something like: 4 wavplay wavmake .128+ 128*1 o. 0.4 * i.100 Though that's a bit short, so maybe instead 4 wavplay wavmake .128+ 128*1 o. 0.4 * i.2000 Note also that the one-liners referred to in the original article seemed to be using a character representation for amplitude, along with a fixed sample rate. That's what I imagine the putchar and pipe to /dev/audio meant, though I've not actually tried running their code. The equivalent, here, would probably require something like: putchar=: 4 wavplay wavemake ... and a self imposed limit of numbers which are valid a. indices. Thanks, -- Raul On Sun, Dec 7, 2014 at 7:02 PM, Skip Cave s...@caveconsulting.com wrote: If I generate a sine wave in J, x =. 1 o. 0.4 * i.100 How do I cause it to be played out the speaker? I searched the J Software site for sound, audio, music, etc., no luck. Skip Skip Cave On Sun, Dec 7, 2014 at 1:50 PM, Raul Miller rauldmil...@gmail.com wrote: Can we do better than this? http://countercomplex.blogspot.com.au/2011/10/algorithmic-symphonies-from-one-line-of.html (Here, writing to /dev/audio on a unix system - warning: some of them are discordant.) -- Raul -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm