Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Thomas McGuire
Here is a transcription of code from an article on music syntax in APL2 and some simple MIDI The article reference is in the code. If you have an ACM membership you should be able to download The PDF of the article Tom McGuire NB. MusicalSyntax.ijs - J implementation of functions from APL90 N

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Thomas McGuire
I have a couple of files one is rough and hastily thrown together. But it pulls together a few ideas from various people and tries to implement a VOSS algorithm to randomly generate music in a fractal pattern. It will also generate MusicXML so you can load it it into a musical score application.

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread 'Jim Russell' via Programming
Thanks, I forward your message in to Devon, who had asked in the j forms. > On Mar 28, 2020, at 10:02 PM, Skip Cave wrote: > > More J music info: > https://code.jsoftware.com/wiki/Addons/media/wav > > Skip Cave > Cave Consulting LLC > > >> On Sat, Mar 28, 2020 at 8:47 PM Skip Cave wrote: >

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Skip Cave
More J music info: https://code.jsoftware.com/wiki/Addons/media/wav Skip Cave Cave Consulting LLC On Sat, Mar 28, 2020 at 8:47 PM Skip Cave wrote: > Jim, > > Here's the new URL for Yoshitaka Nakajima's research pages. A cursory > search didn't find any J code. > http://www.design.kyushu-u.ac.j

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread 'Jim Russell' via Programming
I’m still at the point where my eyes glaze over whenever I see that diagram. So, yes, even though it may be too soon for me to understand it, I would appreciate your effort to shed more light on the topic. > On Mar 28, 2020, at 9:36 PM, ethiejiesa via Programming > wrote: > > I might try wri

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Skip Cave
Jim, Here's the new URL for Yoshitaka Nakajima's research pages. A cursory search didn't find any J code. http://www.design.kyushu-u.ac.jp/~ynhome/ Might want to email him and see if he still has the code: *nakaj...@design.kyushu-u.ac.jp*

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread ethiejiesa via Programming
Raul Miller wrote: > Another possible way to emphasize what's going on here might be to > split 'v' up into multiple instances (one for each cell) in the & > case. (Though, there, drawing a box around the 'v' part, to show the > scope of the verb and distinguish the definition from the application

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread 'Jim Russell' via Programming
I also stumbled across YoshitakaNakajima . Alas, the link therein no longer works. > On Mar 28, 2020, at 5:27 PM, Devon McCormick wrote: > > has anyone done work with generating music or musical phrases in J?

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Don Guinn
Simon https://www.google.com/search?q=symon+tune+toy&oq=symon+tune+toy&aqs=chrome..69i57j33.13227j0j9&client=ms-android-verizon&sourceid=chrome-mobile&ie=UTF-8# On Sat, Mar 28, 2020, 5:03 PM Devon McCormick wrote: > Thanks, Marshall. This looks like a good start on what I'm trying to do. > > O

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread Raul Miller
Another possible way to emphasize what's going on here might be to split 'v' up into multiple instances (one for each cell) in the & case. (Though, there, drawing a box around the 'v' part, to show the scope of the verb and distinguish the definition from the application -- possibly even backed up

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread Henry Rich
Perhaps you could improve the diagram as Raul suggested, by showing that 'break y into cells' occurs as part of u&v processing while in u&:v it is part of v processing. The point of the diagram is to show the difference between u&v and u&:v (and u@v and u@:v) and it does that beautifully. Ever

Re: [Jprogramming] New (?) fold conjunctions: F:. F:: F: F.. F.:

2020-03-28 Thread Henry Rich
You can do whatever you need without Fold, but it has these features: * iteration can be forward or backward through items of a noun * initial value can be provided as its own argument * early termination is allowed * either one result for the whole iteration or a result item per iteration ** res

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Devon McCormick
Thanks, Marshall. This looks like a good start on what I'm trying to do. On Sat, Mar 28, 2020 at 6:49 PM Marshall Lochbaum wrote: > Possibly more complicated than you're looking for, but I added some > comments to an old (and not very good) counterpoint melody generator and > pushed it here: >

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Marshall Lochbaum
Possibly more complicated than you're looking for, but I added some comments to an old (and not very good) counterpoint melody generator and pushed it here: https://github.com/mlochbaum/JSound/blob/master/counterpoint.ijs The repository as a whole has tools for synthesis and mixing as well as a fu

[Jprogramming] New (?) fold conjunctions: F:. F:: F: F.. F.:

2020-03-28 Thread Devon McCormick
Hi - I noticed the "fold" conjunctions only recently. However, I was under the impression that J already has ways to accomplish what is meant by different kinds of folds - see https://en.wikipedia.org/wiki/Fold_%28higher-order_function%29#In_various_languages . Can someone involved with the "F"

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Devon McCormick
My collaborator is a music teacher. On Sat, Mar 28, 2020 at 6:11 PM 'PMA' via Programming < programm...@jsoftware.com> wrote: > Hi Devon - > > Why someone not schooled in music would presume > to train somebody else's ears, I have no idea. > > I'd suggest braving an elementary Music Theory > text

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread 'PMA' via Programming
Hi Devon - Why someone not schooled in music would presume to train somebody else's ears, I have no idea. I'd suggest braving an elementary Music Theory text and some starter literature on Algorithmic Composition. Good luck! Pete On 03/28/2020 05:27 PM, Devon McCormick wrote: Hi - has anyone

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Roger Hui
Marshall Lochbaum's presentation at the last J conference was about music. On Sat, Mar 28, 2020 at 2:28 PM Devon McCormick wrote: > Hi - > has anyone done work with generating music or musical phrases in J? I'm > helping someone develop a music training game that starts by generating > sounds

[Jprogramming] Generating "music" in J (or otherwise)

2020-03-28 Thread Devon McCormick
Hi - has anyone done work with generating music or musical phrases in J? I'm helping someone develop a music training game that starts by generating sounds with a particular key, tempo, and phrase length. The idea is to help students to train their ears by testing them on their ability to play ba

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread Raul Miller
I would put it this way: The diagram could better distinguish between the structure of v and the structure of & (or &:). Probably a light grey box drawn around the "v part" (and the "u part") would help make this distinction clear. (But, since it's an image, and I don't know how the image was or

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread 'Sergey Kamenev' via Programming
Thanks for clarifying. 3) In my opinion, phrases on diagram * split x into cell * split y into cell do not provide anything for understanding conjunctions and could be removed. They apply generally to any verb. 4) The phrase on the diagram "apply v to each cell" is misleading. It would be mor

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread Henry Rich
Even when you apply v to the entire y, you must first split y into cells so that it can be applied to v.   Every verb operates on cells whose rank is no higher than the rank of the verb. In other words, the splitting is not part of u@:v - it is part of executing v itself. Henry Rich On 3/28

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread 'Sergey Kamenev' via Programming
My comments relate to the third column of the diagram. 1. I don’t understand why it is written on the diagram that Y should be splitted into cells if the verb V should be applied to the whole argument Y. 2. The diagram says the verb V must apply individually to each cell Y, and at the top of t

Re: [Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread Henry Rich
I don't see what's wrong with the picture.  Can you be specific? y must always be split into cells, regardless of whether you use & or &: .  The difference comes in whether you collect the results before applying them to u . Henry Rich On 3/28/2020 2:36 PM, 'Sergey Kamenev' via Programming w

[Jprogramming] Bug in new vocabulary &: page

2020-03-28 Thread 'Sergey Kamenev' via Programming
Health to all! Page: https://code.jsoftware.com/wiki/Vocabulary/ampco Written at the top of the page: Applies verb v to each argument in its entirety, and then applies verb u to the result(s) of v The diagram says about &: (bottom to top): * split y into cell * apply v to each cell Nice day!

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Dimitri Georganas
All sorted out - R_HOME was the problem (I mostly use jqt and it would quit every time I ran Ropen'' without an error). This week I'll try to port everything to J with R as server. Thanks. On Sat, Mar 28, 2020 at 7:12 PM Raul Miller wrote: > Also relevant here, is this: > > https://github.com/vm

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Dimitri Georganas
Bill, I was using jqt and every time I ran Ropen'' it would crash and exit. Earlier today I used jconsole and it reported the problem. R_HOME wasn't set. Fixed it and it runs fine. Sorry for the confusion. Best regards, Dimitri On Sat, Mar 28, 2020 at 3:46 PM bill lam wrote: > Can you give deta

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Dimitri Georganas
Hi Robert, I didn't know about the names until I looked them up recently. I've been using jerk to predict growth in bacterial fermentations for several years. And yes, by looking at the peaks of the derivatives, you can see in which phase of the pandemic a country is. Predictive power is good at t

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Raul Miller
Also relevant here, is this: https://github.com/vmchale/coronavirus (I had mentioned this previously on the chat forum, but since it's really J that might have been the wrong forum.) ((Also, if you're a J programmer who isn't familiar with the 'make' program, you might need to run the wget comma

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread chris burke
> I couldn't get the R addon to work with my J installation Could you report this on the general forum, please? Let us know what you tried and with what results. I just tested the Rserver interface and it worked fine, see https://code.jsoftware.com/wiki/Interfaces/R/Rserver/Overview On Sat, Mar

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread bill lam
Can you give detail of the setup of J to R and how did it fail? Last time I tested, it worked for me. 2 years ago, sorry. On Sat, Mar 28, 2020 at 7:18 PM Dimitri Georganas wrote: > Hi, > I've been modeling the spread of the disease using a Gompertz function and > its 1st, 2nd and 3d derivative t

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Robert Herman
Rob, If you make the following changes: ppl =: 25 update =: verb define im =: 5 5$ infect_display^:25 starting_pop ) And run it, you should see two phenomenon. The colors are not the pure RGB red, yellow, white, black, and green, but sometimes a muted blend (off-white, yellowish). Also, if you

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Robert Herman
Don't forget snap, crackle, and pop! I design machinery for entertainment, and we deal with jerk, the third derivative of displacement, and sometime snap, the fourth derivative. I never thought of them applied this way, but I guess it makes sense that you can now that I think about it. Interesting.

Re: [Jprogramming] COVID-19 and simulations in J

2020-03-28 Thread Dimitri Georganas
Hi, I've been modeling the spread of the disease using a Gompertz function and its 1st, 2nd and 3d derivative to determine rate, acceleration and 'jerk', but I couldn't get the R addon to work with my J installation, so I did this part in R. (I couldn't find Levenberg Marquardt curve fitting librar