Finale SmartMusic
  Home | Log In | Register | Search | Help
   
MakeMusic Forum > Public Forums > Plug-In Development - FORUM HAS MOVED! > Noteheads  Forum Quick Jump
 
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
[ << Previous Thread | Next Thread >> | Show Newest Post First ]

Daniele Ghisi
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Daniele GhisiAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2009
Total Posts : 59
 
   Posted 12/6/2009 5:33 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Hallo,
I have a problem in accessing the notehead parameters. If I do

EDataID id;
id.entryDetail.entryNumber = entry->entnum;
id.entryDetail.inci = 0;
EDTNoteheadMods mods;
fourbyte size = sizeof(mods);
FX_LoadEData(ed_NoteheadMods, &id, &mods, &size);

Then, looking into mods.percent, for example, there's a strange negative value (-9847 or something).

Does anybody know why? entry is an EXENTRY* entry = &tgf -> pent for some i.

Thanks for any help!
Daniele

Post Edited (Daniele Ghisi) : 12/6/2009 4:42:44 PM (GMT-6)

Back to Top

Jari Williamsson
Registered Member

Click to send Jari Williamsson email.Click to visit Jari Williamsson's website.Send a Private Message to Jari WilliamssonAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 1998
Total Posts : 3246
 
   Posted 12/6/2009 6:18 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
What Finale version? I see that your code doesn't look at the entry flags prior to loading the struct? Are you sure FX_LoadEData actually loads correctly? IIRC, the EDTNoteheadMods only exists if there are actually some special tools edits done.


Jari Williamsson

Windows XP, Pentium 4
2.40 GHz, 4 GB RAM

Back to Top

Daniele Ghisi
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Daniele GhisiAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2009
Total Posts : 59
 
   Posted 12/6/2009 6:44 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Thanks Jari.
I'm running Finale 2009.
I suppose that you mean that I should check whether
(entry->ef & EF_NOTEDTAIL)

But I was testing the plugin on a measure where i DID change the % of a note.

I was not sure if FX_LoadEData loaded correctly... If I add
> if (FX_LoadEData(ed_NoteheadMods, &id, &mods, &size)){
> StandardMessage("OK"); }
No message is displayed, so I suppose that it DOESN't load things properly...

Why shouldn't it be able to load?

Moreover, also the "setting" part

entry->ef |= EF_NOTEDTAIL;
needRefresh = YES;
memset(&mods, 0, sizeof(mods));
mods.noteID = noteID;
mods.percent = 10;
FX_SaveEData(ed_NoteheadMods, &id, &mods, size);

doesn't seem to work...

Do you have any hint, Jari?
Thanks again,
Daniele
Back to Top

Jari Williamsson
Registered Member

Click to send Jari Williamsson email.Click to visit Jari Williamsson's website.Send a Private Message to Jari WilliamssonAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Dec 1998
Total Posts : 3246
 
   Posted 12/7/2009 1:39 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Are you sure that the TGF is loaded OK, and that it load the measure you think it should be loading? Have you for example verified the number of entries in the loaded TGF?

The "save" example code won't work since you don't seem to resave the TGF (to store the flag change).


Jari Williamsson

Windows XP, Pentium 4
2.40 GHz, 4 GB RAM

Back to Top

Daniele Ghisi
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Daniele GhisiAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2009
Total Posts : 59
 
   Posted 12/7/2009 2:37 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
I am pretty sure that the tgf loaded ok, since I printed the the duration of the notes was correct.
For the "save" example, I resaved the TGF later (and freed it)! I just posted the part of code that might have contained the error.

I really have no clue...
Back to Top
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
   
Forum Information
Currently it is Tuesday, December 19, 2023 6:28 PM (GMT -6)
There are a total of 403,820 posts in 58,165 threads.
In the last 3 days there were 0 new threads and 0 reply posts. View Active Threads