Here is a C++ port for Song: tpqn / numerator / denominator

I renamed tpqn so that it says "TPQN" and not "Ticks" at the UI, because I 
think "Ticks" is a terrible name for that property, as it doesn't say what kind 
of ticks we have here.

I added STANDARD_RDONLY - we could also call this STANDARD RDONLY or STANDARD 
READONLY - I choose the name that SFI_* originally used.

I had to remove the computed defaults, since idl doesn't allow me to compute 
the default of a property. Previously the default values for properties were 
set in the Song implementation, so that the property defaults for 
bpm/numerator/... would always match the defaults from 
bse_song_timing_get_default().

However I think for Song, duplicating the defaults in 
bse_song_timing_get_default() and bseapi.idl is okay, because these probably 
will not change (often). One alternative would be to somehow allow the Song 
implementation to read the defaults that bseapi.idl defines, and so get rid of 
the duplication and make the idl file the canonic place.


The only Song property that remains is the post processing network, but since 
this has the type object, I am not able to port it now. If you have any 
preference for the next object properties to port, let me know.
You can view, comment on, or merge this pull request online at:

  https://github.com/tim-janik/beast/pull/69

-- Commit Summary --

  * BSE: Song::tick_pointer: use C++ false rather than FALSE macro
  * BSE: Song::numerator: port property to C++
  * BSE: Song::denominator: port property to C++
  * BSE: Song::tpqn: port property to C++

-- File Changes --

    M bse/bseapi.idl (58)
    M bse/bsesong.cc (112)
    M bse/bsesong.hh (6)

-- Patch Links --

https://github.com/tim-janik/beast/pull/69.patch
https://github.com/tim-janik/beast/pull/69.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tim-janik/beast/pull/69
_______________________________________________
beast mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/beast

Reply via email to