Edit in "bach.quantize" program using the hertz data value

berane9's icon

After having defined the optimal value of notes, then there is a need to edit those hertz values into music notation system "bach.quantize" mode.

I share the notes and the time measures of a sample song, My request is how will I write it in music note? Here are the notes of the song and its relative time measure.

187 187 187 132 141 141 141 162 168 168 207 213 210 189 165 174 216 222 216 222 216 225 213 207 207

116 117 162 906 116 139 186 464 116 418 140 720 116 627 116 720 789 697 789 395 975 302 116 279 116

the actual tone or tonic of the above sample is 216 or 108. These last group of numbers (the time measure) can be divided by any constant value.

I appreciate, Berhane

Source Audio's icon

Is that 2nd list time measure ?

In what format should it be ?

tempo based ticks offset between notes ? or ms ?

how long are notes ?

frequency to note is simple : use ftom.

but your frequencies do not match equal tempered scale.

berane9's icon

Dear Source Audio, You said that [Is that 2nd list time measure ?] Yeah, the 2nd is the time measure info.

[In what format should it be ?] I mean in the formal format of the 5-lines, if I understood your concept.

[tempo based ticks offset between notes ? or ms ?] I say whichever is possible. I believe you should reduce the size that is written on the paper. I suggest to reduce it to 4 levels about and using an approximation of a percent(%). The time measure is not absolutely strict, as fixed measure. It is like the gregorian chant with no time related time measure. After this exercise I will have a chance to present the chant with a strict time meause structures. So this sample is a loose time measure.

[how long are notes ?] We can categorise the time measure, according to common use, the shorter one with 1/8, and bigger than that 1/4, and so one, and by just an assamptions, for now.

[frequency to note is simple : use ftom.] Yeash, we might need to add the ftom the 0.0 value to get to the whole value of MIDI, I believe. If other tricks, you can guess. I;m not familiar with the bach.quantize software tools.

[but your frequencies do not match equal tempered scale.] Exactly. We have integrate it as an exeption. These conflict will be solved later in the issue of "scala" name file.

Hope I replied to important points. Let me know if it is not clear.

Thanks. Berhane

Source Audio's icon

Can you explain what number 116 (first value in second list) represents ?

I don't understand it.

Each note in whatever format needs it's pitch, position and duration.

that cannot be derived from 2 values.

Can you actually explain how do you get this notes ?

If you are musically trained ,

you can transcribe a melody of any kind

just using a pencil and piece of paper.

Now to the notation,

If you want to use western kind of classical notation, you have to write tempered notes,

and then add whatever description on scales or tunnings etc.

or look into Microtonality stuff.

here are your notes rounded to midi , round object picks nearest integer

1.4 = 1 , 1.6 = 2

Wil's icon

please explain that rhythm

is recurring 116 a downbeat

or

a pickup to next measure

how can you have 116 then followed by 117 rhythmically?

Wil's icon

here is Bach.score

need to translate rhythm

I can't figure out Bach.roll

need Bach.roll -> to Bach.quantize

should be the same but Bach.beatbox does not work with Bach.roll

if rhythm translated then no need for Bach.quantize

L8 - sleep - tomorrow

Max Patch
Copy patch and select New From Clipboard in Max.


berane9's icon

Dear Wil,

I tried to translate the time measure of notes, but it didn't word. The time measure should have been expanded through the data or note, using the appropriate or single time measure assigned. Fro example, I substituted the time measure with the following. The results come by dividing the numbers into "vexpr ($i1 / 116) * 0.125"

[0.125 0.125 0.125 0.875 0.125 0.125 0.125 0.5 0.125 0.375 0.125 0.75 0.125 0.625 0.125 0.75 0.75 0.75 0.75 0.375 1. 0.25 0.125 0.25 0.125]

I like to know where is the catch? Thanks

Wil's icon

here is a quick fix until I can investigate further

back.score has an insane amount stuff in info panel

Max Patch
Copy patch and select New From Clipboard in Max.


Wil's icon

This still doesn't 100% solve Bach.score,

but it combines SOURCE AUDIO solution for pitches with your solution for rhythms (that umenu solution is also from Source Audio -> summer 2023?)

the [append 10] adds measures to Bach.score so that it reaches the end (there is however and extra note added at the end - I don't understand why it doesn't just calculate the rhythms that were input.)

read more in the Bach. help files

Max Patch
Copy patch and select New From Clipboard in Max.


Wil's icon

Here is the fix - have to convert decimals to fractions

You should be able to figure out using info on your other thread

Max Patch
Copy patch and select New From Clipboard in Max.

***note -1 whole note does not work, must be 8/8


Source Audio's icon

I still don't uderstand the process of converting that melody,

in whatever form it exists into notes.

ok, let's say one played audio and tried to get frequencies using some pitch tracker.

conversion to equal tempered notation will fail if one does not tune root to acceptable distance

to scale in order to round ftom process.

even so, I think one would have to correct one or the other note manually.

this list rounded to 440 Hz based ftom shows too large deviation from chromatic scale.

rounded midi notes played together with original frequencies simply sound wrong.

Then note lengths ?

Were they maybe detected by measuring interval between onsets to get rough length ?

I also don't see why should that complicated bach package be used at all,

it is not even able to produce a notation page that one could print

or export as pdf.

Wil's icon
it is not even able to produce a notation page that one could print

I had to exported midi

open in sibelius

fix the notation dramatically

print from Sibelius

I used Bach. once in 2016 - experiment in speed/random composing - made over 100 pieces for various classical instruments.

but yeah, not very useful - if you want something more precise without all the extra work of inputting each numeric value just use Sibelious or Finale (havnt tried Dorico because it cannot do cutaway notation)

C->C#-> E ok. // E->Ab->F# not ok. // F#->E-> Fnat -> A ok// Ab at the end not ok.

***yes it would be helpful if he provided info on how he arrived at quirky numbers

berane9's icon

Dear Wil and Source Audio,

Can you explain what number 116 (first value in second list) represents ?

= I took the 116 number to represent the ¼ note. I guess I got this from the chart.

Each note in whatever format needs it's pitch, position and duration.

= for the moment the starting pitch, the tone, or tonic is the 108 note. for this example it is considered to be the most frequent number, it is just as a sample: 108 or 216 = C3 in MIDI. Unfortunately it happens that there is no any value equal  to the tonic: 108 or 216.

Can you actually explain how do you get this notes ?

= It is the most repeated note, so I guess this is the tonic. So there is a need to match the first note “C” with the 108 Hertz number, and coordinate the other following 6 notes according to the tonic classification. Correct please, if I am wrong. There is also a chance to check while it is a different scale from the tempered note system.

If you want to use western kind of classical notation, you have to write tempered notes,

= Yeah, you’re right. For now, let assume it is right, and later I’m going to check in detail the development of tempered notes and compare that with some that is not tempered. It is done for a research purpose, this study.

For now I’m jumping that investigation, for the expecting rates “scale” will come after some experimentation. In general, there will be a new construct (scale) for the new music, as my theory.

here are your notes rounded to midi , round object picks nearest integer 1.4 = 1 , 1.6 = 2

= This is true, but there is another assumption that the notes can be fetch either by the MIDI numbers or by a secondary serial number. It sounds a double stand, but I thing there is a way to figure out that. This output will come after few samples on this matter. I’m trying to follow up the issue you expressed, dear.

= These numbers “nearest integer 1.4 = 1, 1.6 = 2” are the level of sound and the 2nd the serial list number of MIDI which ever scale list this belongs to: to the tempered tone or another similar.

= I also understand what you called “umenu” and also the “append” object.

rounded midi notes played together with original frequencies simply sound wrong.

= on this last info, what you said wrong, that is correct. I am dealing to know some proper procedure to work out with max msp. But then, there will be tuning tasks to settle the tonic in the correct ratio starting from a base note. The rationale will come very sooner.

I accept your conclusion that the result is wrong. There will be another remaining task to be done. And that to verify the relation that exists among the notes in a form of a scale. My assumption is to reconsider a new factor that may be out of the tempered tone system. I am following you.

berane9's icon

Dear Wil,

your invention to create the 8/8 is great.

  • I want to ask if there is a way to eliminate the time measure bar. This chant is like the gregorian chant. So can we tell the system to input the bar at the end of the period of group chant.

  • while other chants needs the bar, so this is good. Thanks.

  • I want to edit the lyrics of the song. Is it possible to type in with oriental keyboard system? For example, I have one keyboard system made by myself. Is it possible to edit with this new keyboard. Here is the program: https://keyman.com/keyboards/geezbrhan

Thanks, Berhane

TFL's icon

Hi Berhane,

I see that you're back at your tool to transcribe geez chants, great!

I won't react on musical questions as I already did it a lot with you and I will now let other people to give it a try.

About editing the lyrics of the song, there should be no problem using your custom keyboard layout. You just need to use a compatible font in Max. I sent you this example a while ago in an email

Max Patch
Copy patch and select New From Clipboard in Max.

As said in the last comment, you can edit the lyrics "by selecting a note and pressing L. You can also directly double-click the existing text to edit it".

Wil's icon
I want to ask if there is a way to eliminate the time measure bar

You want to eliminate the whole first bar?

Or just hide the time signature?

Here is hiding time signature and tempo.

***if you don't want any bar lines - change the time signature to total number of beats. in this case 38/4


***BTW. if you open bach.score help file and select the second tab - 'notation help center'- you can search any information about messages and arguments

click on 'open separate patch' to interact with examples



Wil's icon
or export as pdf.

yes possible

nightmare!

for_Berhane.pdf
pdf 38.75 KB


search PDF in 'notation help center'


Mac OS Sequoia 15.1

berane9's icon

The text I want to edit is as follows.

This type of keyboard is built with keyboard software company. Here is the source font of the Geez Keyboard.

Lyric test in Max msp.pdf
pdf 19.31 KB

            ከመ ሃለዉ       ዲበ       ሀገ-ረ  እስራ-ኤል።   ይብሉ-------ዋ     ንዒ   ሀበ      ሀገ----ረ    ገ--ነ-ት

ከመ ሃለዉ ዲበ ሀገ-ረ እስራ-ኤል። ይብሉ-------ዋ ንዒ ሀበ ሀገ----ረ ገ--ነ-ት

berane9's icon

These are the alphabets that should be written on them.

ከመ ሃለዉ       ዲበ       ሀገ-ረ  እስራ-ኤል።   ይብሉ-------ዋ     ንዒ   ሀበ      ሀገ----ረ    ገ--ነ-ት

TFL's icon

So, this is working, right? What is the problem?

berane9's icon

Dear TFL,

there is a proper way to edit the text in "bach.*" objects. And I don't how to edit text within the "bach.*" program. There is a particular comand to execute, and I want to know how to deal about it. So my goal is to edit the text according to the "keyboard" I created for this language (Geez). I know there is a way, but it needs to call some commands, and to be inserted using special codes. I want to know. Can you give me a hint, please? Thanks.

Wil's icon
there is a proper way to edit the text in "bach.*" objects

I am working on getting the text into bach.score - each syllable placed on proper note

I solved it manually

difficult to automate

insert spacers to offset text to correct sylllabe

soon

berane9's icon

Dear Wil, good to hear you're working on it. Thanks.

Wil's icon

BERANE9 Here ya go!

Max Patch
Copy patch and select New From Clipboard in Max.

also. now we are using [exportimage]

[exportpdf] is broken

maybe someone come along and better way to deal with those parentheses []

and adding spacers dynamically to offset text

//
*** maybe someone who built bach.

can update bach.score: IIII: extras info tab

really piss me off releasing something like this and NO NO NO info

not a single example anywhere add lyrics dynamically

search 'notation help center'

how to add lyrics to score

nothing

really bad

there should be an entire lyrics help center

shows all the wats to add lyrics

including

'how to dynamically attach lyrics to individual notes'

instead - there's miles of garbage that makes zero sense


sorry/not sorry to go off on your thread BERANE9


TFL's icon

Oooh it was about adding all lyrics in one step, I didn't understand that.

Also, small tip about exportimage: the @dpi attribute doesn't work, but you can cheat by dynamically changing the size of [bach.score] by sending script sendbox bach_score size X Y to [thispatcher] (given that [bach.score] has bach_score as a scripting name, and you replaced X and Y by the desired dimension) just before sending your exportimage message, then revert to the initial size:

Max Patch
Copy patch and select New From Clipboard in Max.

Wil's icon

Thanks TFL for sizing tip

Oooh it was about adding all lyrics in one step, I didn't understand that.

maybe me too :) - (possible though, and not documented very well - the extras inlet)

Aslo BERANE9

More simply - You can add lyrics mentioned in the bach.score help center

  1. click any note

  2. press the 'L' key on your keyboard - bring up a little menu

  3. type in lyric

  4. move to next note


berane9's icon

Dear Wil,

There are hidden codes or references on this programs:

If it works for 3 languages, what is the missing point with the "geezbrhan" source font?


Wil's icon

those are languages - not fonts

it is translating

I tried change first slot to Spanish, latin - does not work

this is part of what I said before about really bad help files

you notice the umenu is connected to left out let - this is outputting a number - not language name

might a be a built in translation or need to set up somewhere for other languages

either way - the font stays the same when you change language

if I change the font now on my laptop

ንግፍስር

//

I installed your keyborad

selected ge'ez font

type in the text

it works



berane9's icon

Wil, give me few hours, I'll be back with you after contacting the SI Abyssinia company. Good try, and I'll not give up. Thanks

berane9's icon

Dear Wil, thisi is the fonts I want to use for personal reasons. As I confirm the positive result, I congratule with you for the success.

[ ከመይ ኣሎኹም ጥዕናኹም። ] I use this for I created it, but mostly for the smoothy work this last keyboard gives to the user interface.

If the limits are possible, I will confront the company to check if it can work smoothly as the european languages use. i will check with you as soon I consunt the base company. Thanks and congra to all.

berane9's icon

Let me just add small question. If I edited let's say 3 pages, how will I set up the page in different format, like in A4 size or in A5 size paper. Thanks.

Wil's icon
If I edited let's say 3 pages, how will I set up the page in different format

Export the image from bach.

put the images in any text editor- Pages , Word etc

print the size that you want

berane9's icon

Thanks, dear Wil