Hi, I am making a library of [struct]s that will be used for drawing "usual" sheets with data structures. Feel free to use, modify them, and/or make some comments (very welcomed) patco
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hallo, patco hat gesagt: // patco wrote:
I am making a library of [struct]s that will be used for drawing "usual" sheets with data structures. Feel free to use, modify them, and/or make some comments (very welcomed)
Wow, cool, great idea.
I would recommend to use arrays for the staff- and bar-lines, it's much easier to patch and use. Maybe I'll do some tomorrow.
Regarding the notes: In my Pd the stems and flags are painted to the wrong side of the note heads. The should be on the other side, if my memory serves me right. But then, Pd probably never will be Lilypond. ;)
It probably would be nice to have the center of a head on the x=0-coordinate, so some coordinates may better be negative.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hello,
I would recommend to use arrays for the staff- and bar-lines, it's much easier to patch and use. Maybe I'll do some tomorrow.
It seems to be a good idea, but I have no clue...
Regarding the notes: In my Pd the stems and flags are painted to the wrong side of the note heads. The should be on the other side, if my memory serves me right.
Your memory is very good, I have the bad use to reverse everything since I am left-handed. So let me correct this error right now and send the correction in the list.
But then, Pd probably never will be Lilypond. ;)
OOps, the main idea was about doing something like lilypond...:D
It probably would be nice to have the center of a head on the x=0-coordinate, so some coordinates may better be negative.
Yes, I am correcting it too.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
Thanks, Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hallo, patco hat gesagt: // patco wrote:
Hello,
I would recommend to use arrays for the staff- and bar-lines, it's much easier to patch and use. Maybe I'll do some tomorrow.
It seems to be a good idea, but I have no clue...
I attached an example of what I mean. I actually posted this today in another thread ("Stack overflow"), but I changed it a little bit now.
But then, Pd probably never will be Lilypond. ;)
OOps, the main idea was about doing something like lilypond...:D
Maybe Pd can be a little pony instead ... ;)
Frank Barknecht _ ______footils.org_ __goto10.org__
Hello, I've corrected the note displaying, zero at the crossing point between the node and the queue seems to be a good place. An array is used for the bar lines only (didn't take the time for fully understanding arrays in datastructure yet), the bar length will need to be fixed with the number of notes anyway, so regular spaces doesn't seem to be the best solution.
Maybe Pd can be a little pony instead ... ;)
PygmyPony might be a good name for that patch, :D
Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hey Patco your patch sounds cool. I tried starting it though and every time I try loading score-template.pd before or after I load score-lib.pd Pd crashes (just exits unannounced). It did this in both Pd 0.39-0 and 0.38.4-extended. Am I loading it the wrong way or missing an external?
Tristan
On 3/25/06, patco megalegoland@yahoo.fr wrote:
Hello, I've corrected the note displaying, zero at the crossing point between the node and the queue seems to be a good place. An array is used for the bar lines only (didn't take the time for fully understanding arrays in datastructure yet), the bar length will need to be fixed with the number of notes anyway, so regular spaces doesn't seem to be the best solution.
Maybe Pd can be a little pony instead ... ;)
PygmyPony might be a good name for that patch, :D
Patco.
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, tristan chambers hat gesagt: // tristan chambers wrote:
Hey Patco your patch sounds cool. I tried starting it though and every time I try loading score-template.pd before or after I load score-lib.pd Pd crashes (just exits unannounced). It did this in both Pd 0.39-0 and 0.38.4-extended. Am I loading it the wrong way or missing an external?
No, I get this, too, it's my fault. I think, it's because there is an array definition ("staffs") in [struct beatgrid] that references non-extisting structs ("staff"). Deleting that will fix the crash. You can load Pd with "-noloadbang" to circumvent the crashing.
I attached an updated version, which now also lets you move the bar-lines with the mouse. There is a strange bug as well in newer Pds: The notes created after pressing the green bang will all be displayed at position (0,0) on top of each other. However once you do a "Select all" (Ctl-A) you will see the blue borders indicate the real position of the notes and you will be able to fix the display by closing and reopening [pd display]. I would love to see where this comes from?
Frank Barknecht _ ______footils.org_ __goto10.org__
--- Frank Barknecht fbar@footils.org a écrit :
No, I get this, too, it's my fault. I think, it's because there is an array definition ("staffs") in [struct beatgrid] that references non-extisting structs ("staff"). Deleting that will fix the crash. You can load Pd with "-noloadbang" to circumvent the crashing.
I attached an updated version, which now also lets you move the bar-lines with the mouse. There is a strange bug as well in newer Pds: The notes created after pressing the green bang will all be displayed at position (0,0) on top of each other. However once you do a "Select all" (Ctl-A) you will see the blue borders indicate the real position of the notes and you will be able to fix the display by closing and reopening [pd display]. I would love to see where this comes from?
You've been very fast for answering, eh, thanks for the updating,
Patco.
(ps: did you received this email twice?, I am testing something with my mail client)
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
hello, --- tristan chambers polytristan@gmail.com a écrit :
Hey Patco your patch sounds cool. I tried starting it though and every time I try loading score-template.pd before or after I load score-lib.pd Pd crashes (just exits unannounced). It did this in both Pd 0.39-0 and 0.38.4-extended. Am I loading it the wrong way or missing an external?
No missing external, just an error into score-lib.pd, a missing array, I've fixed it in attached files. this is just a data structure library, all the sequencing stuff is missing for the moment, I am expecting to use some list-abs and pipe-seq for doing it. And thanks for the remark. I am trying right now to use arrays for displaying staffs. Patco
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde entier à partir de 0,012 Â/minute ! Téléchargez sur http://fr.messenger.yahoo.com
Hallo, patco hat gesagt: // patco wrote:
No missing external, just an error into score-lib.pd, a missing array, I've fixed it in attached files. this is just a data structure library, all the sequencing stuff is missing for the moment, I am expecting to use some list-abs and pipe-seq for doing it. And thanks for the remark. I am trying right now to use arrays for displaying staffs.
I think it would be interesting to have a more general struct definition for notes instead of one defintion for each possible note type like half, quarter, dotted etc.
I'm not sure how many definitions would be necessary, but for example half (blanche-h) and quarter (noire-h) notes only differ in the interior color. If the interior color would be a struct field, like "float filled", then the same struct could be used for both, and on creation, the half note would be created with "filled" set to "999" and the quarter not would get "filled" set to "0".
Flags would be a candidate for an array, too. Depending on the length of the "flags" array, we would get 1/16, 1/32,... notes.
Oh, and the flags for the low-notes are on the wrong side again. The flags of notes always wave to the right side. ;)
Frank Barknecht _ ______footils.org_ __goto10.org__
--- Frank Barknecht fbar@footils.org a écrit :
I think it would be interesting to have a more general struct definition for notes instead of one defintion for each possible note type like half, quarter, dotted etc.
Well, it would be already done if I've found a procedure to plot with "y spacing", but that fonction is cruelly missing or I haven't found this in the docs, or my understanding of arrays is cruelly limited.
I'm not sure how many definitions would be necessary, but for example half (blanche-h) and quarter (noire-h) notes only differ in the interior color. If the interior color would be a struct field, like "float filled", then the same struct could be used for both, and on creation, the half note would be created with "filled" set to "999" and the quarter not would get "filled" set to "0".
Very good!
Flags would be a candidate for an array, too. Depending on the length of the "flags" array, we would get 1/16, 1/32,... notes.
Flags also need "y spacing".
Oh, and the flags for the low-notes are on the wrong side again. The flags of notes always wave to the right side. ;)
Shame on me...it blows...:")
Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hallo, patco hat gesagt: // patco wrote:
--- Frank Barknecht fbar@footils.org a écrit :
I think it would be interesting to have a more general struct definition for notes instead of one defintion for each possible note type like half, quarter, dotted etc.
Well, it would be already done if I've found a procedure to plot with "y spacing", but that fonction is cruelly missing or I haven't found this in the docs, or my understanding of arrays is cruelly limited.
As a property of "plot" the function indeed is missing, however a simple trick to achieve a similar result is possible. Basically you set the x-spacing in [plot] to 0, so that all array elements have the same x-position, then you use the y-field of the array-elements to make them appear at different heights. I attached an example to illustrate this.
Flags would be a candidate for an array, too. Depending on the length of the "flags" array, we would get 1/16, 1/32,... notes.
Flags also need "y spacing".
A similar trick as above could be used, I believe.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
patco hat gesagt: // patco wrote:
--- Frank Barknecht fbar@footils.org a écrit :
I think it would be interesting to have a more general struct definition for notes instead of one defintion for each possible note type like half, quarter, dotted etc.
...
Flags would be a candidate for an array, too. Depending on the length of the "flags" array, we would get 1/16, 1/32,... notes.
Flags also need "y spacing".
A similar trick as above could be used, I believe.
It can. I now did a very general note stuct, which is only still missing dots. It's attached.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hello,
Frank Barknecht wrote:
Flags also need "y spacing".
A similar trick as above could be used, I believe.
It can. I now did a very general note stuct
Very impressioning.
, which is only still missing dots. It's attached.
I've added dots, it's in attached file, with some coments about encountered problems, I've added [once] from iemabs to avoid some stack overflow.
Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com
Hello,
Frank Barknecht wrote:
Flags also need "y spacing".
A similar trick as above could be used, I believe.
It can. I now did a very general note stuct
Very impressioning.
, which is only still missing dots. It's attached.
I've added dots, it's in attached file, with some coments about encountered problems, I've added [once] from iemabs to avoid some stack overflow.
Patco.
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com