/* subprogramm to notes.pprx */ signal on halt signal on break_c signal on break_e signal on break_d call ppm_SetStyle(N) noteneingabe: /* smallest note distance */ xgrdform = "(1,2,4,8 oder 16)" xgrd = ppm_GetForm("Pleace choice the smallest note distance...(nothing=BREAK)", 3, xgrdform) if xgrd == '' then exit_msg("user break !") select when xgrd == '1' then xg =0.7 when xgrd == '2' then xg =1.4 when xgrd == '4' then xg =2.8 when xgrd == '8' then xg =5.6 when xgrd == '16' then xg =11.2 otherwise notenwert() end /* pointheighth of the notes */ notepkt = 26 call ppm_SetJustification(0) zz = 0 /* line counter */ notex = 0 notey = 0 page = ppm_CurrentPage() clickpos: res = ppm_GetUserText(2, "manual or align to box? m/b") if res == 'M' then res = 'm' if res == 'B' then res = 'b' select when res == 'm' then do clickpos = ppm_GetClickPosition("Please click on the place, where I shall begin ...") if clickpos == 0 then do exit_msg("ERROR !! EXIT !!") end else do notey = word(clickpos, 2) notex = word(clickpos, 1) if notex < 2.5 then notex = 2.5 xw = notex yw = notey if notey <= 5.3 then zz= 0 /* zz is linecounter */ if ((notey > 7.5)&(notey < 9.3)) then zz = 4 if ((notey > 11.5)&(notey < 13.3)) then zz = 8 if ((notey > 15.5)&(notey < 17.3)) then zz = 12 if ((notey > 19.5)&(notey < 21.3)) then zz = 16 if ((notey > 22.5)&(notey < 25.3)) then zz = 20 if notey > 25.3 then noteneingabe() end end when res == 'b' then do clickbox = ppm_ClickOnBox("Please click on a box, where I shall work away ...") pos = ppm_GetBoxPosition(clickbox) notex = word(pos, 1) notey = word(pos, 2) xw = notex yw = notey call ppm_BoxAtPosn(notex, notey, page) if notey <= 3.3 then zz= 0 if ((notey > 5.5)&(notey < 9.3)) then zz = 4 if ((notey > 9.5)&(notey < 13.3)) then zz = 8 if ((notey > 13.5)&(notey < 17.3)) then zz = 12 if ((notey > 17.5)&(notey < 21.3)) then zz = 16 if ((notey > 21.5)&(notey < 25.3)) then zz = 20 if notey > 25.3 then noteneingabe() if notex <= 1 then do noteneingabe() end end otherwise clickpos() end /* pointerbox */ zbid = ppm_CreateBox(notex, zz+2.5, 0.3, 1, 0) call ppm_SetSize(26) zbn = ppm_GetBoxName(zbid) call ppm_TextIntoBox(zbn, '5') notenwert: do forever cr = '0a'x form = "worth name ['n'at.]" call ppm_SetBoxPosition(zbid, notex, zz+2.5) call ppm_UpdateScreen() eingabe = ppm_GetForm("Please type in for the notes ...(nothing=break)", 9, form) if eingabe == '' then do call ppm_DeleteBox(zbid) exit_msg() end nw = word(eingabe, 1) if nw == 'P' then nw = 'p' /*pause*/ nn = word(eingabe, 2) al = word(eingabe, 3) if al == 'N' then al = 'n' /*natural sign*/ IF nw == 'D' then nw = 'd' /*delete*/ if nw == 'C' then nw = 'c' /*space*/ if nw == 'L' then nw = 'l' /*bar line*/ if nn == 'L' then nn = 'l' /*bar line*/ if nw == "NEW" then nw = "new" /*new pointer position*/ /* x-distance of the notes */ auswahl: select when nw == 's' then do xw = xg/16 nw='x' yv = 0 end when nw == 'S' then do xw = xg/16 nw='X' yv = 0.47 end when nw == 'e' then do xw = xg/8 nw='e' yv = 0 end when nw == 'E' then do xw = xg/8 nw='E' yv = 0.47 end when nw == 'q' then do xw = xg/4 nw='q' yv = 0 end when nw == 'Q' then do xw = xg/4 nw='Q' yv = 0.47 end when nw == 'h' then do xw = xg/2 yv = 0 end when nw == 'H' then do xw = xg/2 yv = 0.47 end when nw == 'w' then do xw = xg nw='w' yv = 0 end when nw == 'W' then do xw = xg nw='W' yv = 0.47 end when nw == 'pt' then do call ppm_SetSize(25) box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'd') select when nn == '1' then do xw = xg notex = notex+xw end when nn == '2' then do xw = xg/2 notex = notex+xw end when nn == '4' then do xw = xg/4 notex = notex+xw end when nn == '8' then do xw = xg/8 notex = notex+xw end when nn == '16' then do xw = xg/16 notex = notex+xw end when nn == 'l' then do xw = 0.2 notex = notex+xw end otherwise notenwert() end if notex >=18.7 then do notex = 2.5 zz = zz + 4 end px = notex - 4 py = zz-1 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) notenwert() end when nw == 'PT' then do call ppm_SetSize(25) box#id = ppm_CreateBox(notex-xw+0.4, yw+zz+0.26-yv, 0.3, 0.9, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'd') select when nn == '1' then do xw = xg notex = notex+xw end when nn == '2' then do xw = xg/2 notex = notex+xw end when nn == '4' then do xw = xg/4 notex = notex+xw end when nn == '8' then do xw = xg/8 notex = notex+xw end when nn == '16' then do xw = xg/16 notex = notex+xw end when nn == 'l' then do xw = 0.2 notex = notex+xw end otherwise notenwert() end if notex >=18.7 then do notex = 2.5 zz = zz + 4 end px = notex - 4 py = zz-1 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) notenwert() end /* delete */ when nw == 'd' then do oldpos = notex thisbox = ppm_BoxNum() if thisbox == zbid then do ppm_Inform(1, "Nothing to delete!","OK") notenwert() end lpos= ppm_GetBoxPosition() notex = word(lpos, 1) call ppm_DeleteBox() diff = oldpos - notex if (diff < 0.3)&(diff > 0.1) then notex = notex + 0.23 py = zz - 1 px = notex - 4 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) notenwert() end /* barline */ when nw == 'l' then do call ppm_SetLineWeight(0.25) call ppm_DrawLine(notex, 4+zz, notex, 4.8+zz) notex = notex+0.2 end when nw == 'p' then do pausenwert: x = notex select when nn == '1' then do y = 4.29+zz call ppm_SetLineWeight(4) call ppm_DrawLine(x, y, x+0.4, y) call ppm_SetLineWeight(0.25) xw = xg notex = notex+xw end when nn == '2' then do y = 4.33+zz call ppm_SetLineWeight(4) call ppm_DrawLine(x, y, x+0.4, y) call ppm_SetLineWeight(0.25) xw = xg/2 notex = notex+xw end when nn == '4' then do y = 4.07+zz Pbox = ppm_CreateBox(x, y, 0.59, 0.86, 0) boxnm = ppm_DocNextBox(Pbox) call ppm_DeleteContents(boxnm) call ppm_ImportGraphic(boxnm, 'Genies:note_pause/quarterpause', pause) xw = xg/4 notex = notex+xw end when nn == '8' then do y = 4.21+zz Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0) boxnm = ppm_DocNextBox(Pbox) call ppm_DeleteContents(boxnm) call ppm_ImportGraphic(boxnm, 'Genies:note_pause/eighthpause', pause) xw = xg/8 notex = notex+xw end when nn == '16' then do y = 4.21+zz Pbox = ppm_CreateBox(x, y, 0.27, 0.42, 0) boxnm = ppm_DocNextBox(Pbox) call ppm_DeleteContents(boxnm) call ppm_ImportGraphic(boxnm, 'Genies:note_pause/sixteenthpause', pause) xw = xg/16 notex = notex+xw end otherwise notenwert() end if notex >=18.7 then do notex = 2.5 zz = zz + 4 end px = notex - 4 py = zz-1 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) notenwert() end /* space */ when nw == 'c' then do /* wert = ppm_GetForm("1/1 1/2 1/4 1/8 1/16 ...?", 2, "1 , 2, 4, 8, 16") */ select when nn == '1' then do xw = xg notex = notex+xw end when nn == '2' then do xw = xg/2 notex = notex+xw end when nn == '4' then do xw = xg/4 notex = notex+xw end when nn == '8' then do xw = xg/8 notex = notex+xw end when nn == '16' then do xw = xg/16 notex = notex+xw end when nn == 't' then do xw = 0.2 notex = notex+xw end otherwise notenwert() end if notex >=18.7 then do notex = 2.5 zz = zz + 4 end px = notex - 4 py = zz-1 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) notenwert() end when nw == 'new' then do call ppm_DeleteBox(zbid) clickpos() end otherwise notenwert() end /* y-place of the notes - noteneck to top */ call ppm_SetLineWeight(0.25) select when nn=='g#3' then do yw = 2.745 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='g3' then do yw = 2.745 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='gb3' then do yw = 2.745 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='f#3' then do yw = 2.845 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='f3' then do yw = 2.845 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='e#3' then do yw = 2.945 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='e3' then do yw = 2.945 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='eb3' then do yw = 2.945 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='d#3' then do yw = 3.045 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='d3' then do yw = 3.045 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='db3' then do yw = 3.045 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='c#3' then do yw = 3.145 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='c3' then do yw = 3.145 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='b2' then do yw = 3.245 if al == 'n' then call auflhoch() end when nn=='bb2' then do yw = 3.245 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='a#2' then do yw = 3.345 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='a2' then do yw = 3.345 if al == 'n' then call auflhoch() end when nn=='ab2' then do yw = 3.345 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='g#2' then do yw = 3.445 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='g2' then do yw = 3.445 if al == 'n' then call auflhoch() end when nn=='gb2' then do yw = 3.445 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='f#2' then do yw = 3.545 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='f2' then do yw = 3.545 if al == 'n' then call auflhoch() end when nn=='e#2' then do yw = 3.645 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='e2' then do yw = 3.645 if al == 'n' then call auflhoch() end when nn=='eb2' then do yw = 3.645 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='d#2' then do yw = 3.745 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='d2' then do yw = 3.745 if al == 'n' then call auflhoch() end when nn=='db2' then do yw = 3.745 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='c#2' then do yw = 3.845 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='c2' then do yw = 3.845 if al == 'n' then call auflhoch() end when nn=='b1' then do yw = 3.945 if al == 'n' then call auflhoch() end when nn=='bb1' then do yw = 3.945 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='a#1' then do yw = 4.045 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='a1' then do yw = 4.045 if al == 'n' then call auflhoch() end when nn=='ab1' then do yw = 4.045 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='g#1' then do yw = 4.145 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='g1' then do yw = 4.145 if al == 'n' then call auflhoch() end when nn=='gb1' then do yw = 4.145 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='f#1' then do yw = 4.245 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='f1' then do yw = 4.245 if al == 'n' then call auflhoch() end when nn=='e#1' then do yw = 4.345 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='e1' then do yw = 4.345 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='eb1' then do yw = 4.345 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='d#1' then do yw = 4.445 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='d1' then do yw = 4.445 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='db1' then do yw = 4.445 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.21, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='c#1' then do yw = 4.545 box#id = ppm_CreateBox(notex-0.22, yw+zz+0.32, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2) end when nn=='c1' then do yw = 4.545 if al == 'n' then call auflhoch() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2) end /* y-Raster der Noten - Notenhälse nach unten */ when nn=='G#3' then do yw = 3.22 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='G3' then do yw = 3.22 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='GB3' then nn = 'Gb3' when nn=='Gb3' then do yw = 3.22 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) call ppm_DrawLine(notex, zz+3.4, (notex+0.4), zz+3.4) end when nn=='F#3' then do yw = 3.32 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='F3' then do yw = 3.32 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='E#3' then do yw = 3.42 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='E3' then do yw = 3.42 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='EB3' then nn = 'Eb3' when nn=='Eb3' then do yw = 3.42 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) call ppm_DrawLine(notex, zz+3.6, (notex+0.4), zz+3.6) end when nn=='D#3' then do yw = 3.52 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='D3' then do yw = 3.52 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='DB3' then nn = 'Db3' when nn=='Db3' then do yw = 3.52 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='C#3' then do yw = 3.62 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='C3' then do yw = 3.62 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+3.8, (notex+0.4), zz+3.8) end when nn=='B2' then do yw = 3.72 if al == 'n' then call aufltief() end when nn=='Bb2' then do yw = 3.72 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='A#2' then do yw = 3.82 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='A2' then do yw = 3.82 if al == 'n' then call aufltief() end when nn=='AB2' then nn = 'Ab2' when nn=='Ab2' then do yw = 3.82 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='G#2' then do yw = 3.92 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='G2' then do yw = 3.92 if al == 'n' then call aufltief() end when nn=='GB2' then nn = 'Gb2' when nn=='Gb2' then do yw = 3.92 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='F#2' then do yw = 4.02 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='F2' then do yw = 4.02 if al == 'n' then call aufltief() end when nn=='E#2' then do yw = 4.12 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='E2' then do yw = 4.12 if al == 'n' then call aufltief() end when nn=='EB2' then nn = 'Eb2' when nn=='Eb2' then do yw = 4.12 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='D#2' then do yw = 4.22 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='D2' then do yw = 4.22 if al == 'n' then call aufltief() end when nn=='DB2' then nn = 'Db2' when nn=='Db2' then do yw = 4.22 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='C#2' then do yw = 4.32 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='C2' then do yw = 4.32 if al == 'n' then call aufltief() end when nn=='B1' then yw = 4.42 when nn=='Bb1' then do yw = 4.42 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='A#1' then do yw = 4.52 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='A1' then do yw = 4.52 if al == 'n' then call aufltief() end when nn=='AB1' then nn = 'Ab1' when nn=='Ab1' then do yw = 4.52 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='G#1' then do yw = 4.62 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='G1' then do yw = 4.62 if al == 'n' then call aufltief() end when nn=='GB1' then nn = 'Gb1' when nn=='Gb1' then do yw = 4.62 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') end when nn=='F#1' then do yw = 4.72 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') end when nn=='F1' then do yw = 4.72 if al == 'n' then call aufltief() end when nn=='E#1' then do yw = 4.82 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='E1' then do yw = 4.82 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='EB1' then nn = 'Eb1' when nn=='Eb1' then do yw = 4.82 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='D#1' then do yw = 4.92 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='D1' then do yw = 4.92 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='DB1' then nn = 'Db1' when nn=='Db1' then do yw = 4.92 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.27, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 'f') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) end when nn=='C#1' then do yw = 5.02 box#id = ppm_CreateBox(notex-0.24, yw+zz-0.15, 0.35, 0.75, 0) call ppm_SetSize(20) call ppm_TextIntoBox(box#id, 's') call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2) end when nn=='C1' then do yw = 5.02 if al == 'n' then call aufltief() call ppm_DrawLine(notex, zz+5, (notex+0.4), zz+5) call ppm_DrawLine(notex, zz+5.2, (notex+0.4), zz+5.2) end otherwise notenwert() end /* measures of a notebox */ notewidht = 0.64 noteheight = 0.97 boxid = ppm_CreateBox(notex, yw+zz, notewidht, noteheight, 0) call ppm_SetSize(notepkt) call ppm_TextIntoBox(boxid, nw) notex = (notex + xw) if notex >=18.7 then do notex = 2.5 zz = zz + 4 end px = notex - 4 py = zz-1 if px < 0 then px = 0 call ppm_SetPagePosition(px, py+1.5) end end end exit auflhoch: do Pbox = ppm_CreateBox(notex-0.34, yw+zz+0.07, 0.6, 1.2, 0) boxnm = ppm_DocNextBox(Pbox) call ppm_DeleteContents(boxnm) call ppm_ImportGraphic(boxnm, 'Genies:note_pause/naturalsng', Zeichen) return end aufltief: do Pbox = ppm_CreateBox(notex-0.34, yw+zz-0.4, 0.6, 1.2, 0) boxnm = ppm_DocNextBox(Pbox) call ppm_DeleteContents(boxnm) call ppm_ImportGraphic(boxnm, 'Genies:note_pause/naturalsng', Zeichen) return end break_d: break_e: break_c: halt: call exit_msg("User aborted Genie!") exit_msg: procedure do parse arg message if message ~= '' then call ppm_Inform(1,message,) call ppm_ClearStatus() call ppm_AutoUpdate(1) exit end