Search found 156 matches

by sydy
Mon Jul 11, 2022 10:40 am
Forum: bach: automated composer's helper
Topic: Bell – help with memory exhausted error
Replies: 2
Views: 1934

Re: Bell – help with memory exhausted error

Dear Andrea, Many thanks! This is, again, a good example about the lifting option. Didn't think about it. The memory exhausted problems occur normally only when I do "longer" snippets of code inside one routine and it looks like using the lifting option and therefore splitting up the routine into a ...
by sydy
Sun Jul 10, 2022 10:22 am
Forum: bach: automated composer's helper
Topic: Bell – help with memory exhausted error
Replies: 2
Views: 1934

Bell – help with memory exhausted error

Hi, In the code cited afterwards I'm getting a "memory exhausted" error on line 28. Can't figure out why. I tried to wrap what ever I could ... Any help would be appreciated. $subrollTOjitmatrix =($subroll->( $sub_rll = sort(left(flat($subroll,1),-1)); ## checking the list for changes $addrs; for $i...
by sydy
Thu Jul 07, 2022 3:34 pm
Forum: bach: automated composer's helper
Topic: bell – sort()
Replies: 1
Views: 1604

bell – sort()

How can one sort in bell the same way I can sort with bach.sort? Eg: input: [two 2] [one 1] [four 4] [three 3] bach.sort @by 2 –>will sort by the second element of each sublist. bach.print: [ one 1 ] [ two 2 ] [ three 3 ] [ four 4 ] bach.eval sort($x1,2) bach.print: [ four 4 ] [ one 1 ] [ three 3 ] ...
by sydy
Wed Jun 29, 2022 9:22 pm
Forum: bach: automated composer's helper
Topic: bell.map() arguments for the modification function
Replies: 2
Views: 2017

Re: bell.map() arguments for the modification function

Dear Andrea, Thanks for your quick and well explained answer. What a wonderful occasion to finally understand how the syntax of lifted variables works. (I was close but somehow tried the lifting on the wrong place.) Also it is indeed highly interesting to know, that one can pass a function as a nati...
by sydy
Wed Jun 29, 2022 7:57 am
Forum: bach: automated composer's helper
Topic: bell.map() arguments for the modification function
Replies: 2
Views: 2017

bell.map() arguments for the modification function

Hello, I have a little question about the possibilities of map() with user defined functions. If we use bach.mapelem we can actually put what ever "function" we want between the lambda out and in. How do we do this in inside bell? My goal is a user defined, global scaling function inside bell where ...
by sydy
Tue Jun 14, 2022 10:46 pm
Forum: bach: automated composer's helper
Topic: Bach.roll: getting the index of the headers last element
Replies: 2
Views: 903

Re: Bach.roll: getting the index of the headers last element

Great. That's the way I understood it. So bach.sliceheader does under the hood something like: ## input is a full dump. We look for the body. $input = $x1.right(1) ; ## take out router 'roll' $inlen = $input.length() ; ## get length $check = 0; ## init condition var ## loop through the dump for $i $...
by sydy
Mon Jun 13, 2022 7:34 am
Forum: bach: automated composer's helper
Topic: Bach.roll: getting the index of the headers last element
Replies: 2
Views: 903

Bach.roll: getting the index of the headers last element

How would you get the index of a dump bach.roll's body beginning if you don't want to dump the body but want to extract it from a whole dump? My first intuitive answer was to search the last element of the header. As far as I understand this must be the loop information. But I'm currently not sure i...
by sydy
Fri Mar 18, 2022 8:53 am
Forum: bach: automated composer's helper
Topic: bach.slot <type: llll> not working commands: appendslotitem, changeslotitem, insertslotitem
Replies: 1
Views: 621

bach.slot <type: llll> not working commands: appendslotitem, changeslotitem, insertslotitem

I can't remember if I already asked this (couldn't find an entry in the forum): It seems that the commands appendslotitem, changeslotitem, insertslotitem are all not working with bach.slot <type: llll> Could you check this? Many thanks <pre><code> ----------begin_max5_patcher---------- 1313.3oc6ak0j...
by sydy
Thu Mar 17, 2022 3:26 pm
Forum: bach: automated composer's helper
Topic: Bach.eval initiating a variable inside a loop
Replies: 1
Views: 1178

Bach.eval initiating a variable inside a loop

This is probably a question for Andrea I tried is a simple attempt to program a kind of URN in bell. It was supposed to be a simple task :) Unfortunately, I lost two hours before I found out that if my temp array (line 8) wasn't initiated with 'null' I would not get the collected return of my subloo...
by sydy
Thu Mar 17, 2022 12:35 pm
Forum: bach: automated composer's helper
Topic: Bach.eval | urn()
Replies: 1
Views: 1258

Bach.eval | urn()

Hey,

I hope you're doing fine. Little suggestion for bach.eval : urn()
That would be quite nice... wouldn't it? :–)
It's a snippet to reprogram quite often otherwise...