On June 24, 2013 10:46:01 PM Florian Jung wrote: > what's this spos for? > > Is it a offset in the wavefile (i.e. equivalent behaviour would be to > cut away the first frames of my wavefile?), or is it more?
Yes it is a sample offset into the file, where the wave should start. It is very important because when you 'split' a wave part, the result is two wave parts, and the second wave part has this spos value adjusted to the place into the file where the split occurs. Thus the spos can be a very high numerical value at times. Recall I attempted to use spos as a user adjustable recording latency compensation value, in a past release. It was a bad idea. Because after a split, the value is so high as to incomprehensible to the user and they should not play with it. A tentative plan is to embellish spos with a 'user adjustable' component that is visible to the user, while the component responsible for splits is not visible or adjustable by the user and remains tucked away out of harm's way. But there are some challenges there, it is not as easy as I thought. Ultimately my efforts at automatic latency correction could negate the need for this new spos user component. But yet, we still may need it because we actually do not have any other way for the user to precisely *manually* adjust the position of a wave part in samples. So I may have to do this anyway. You once asked why our event time members are unsigned. I now think this may have been a bad idea, because we can't place or adjust events to before 'zero' time (negative position). This would be really useful for example the user could nudge a wave part to the left slightly, into negative start time < 0. Flo, if you decide to change event times from unsigned to signed, which is tedious but you have my blessing, try to replace the type with a common system-wide typedef of our choosing (call it Event_Time_t or something) so that we can easily manage it in the future :) > And Tim. you have recently added sample-exact placing of wave events. > How did you do this? Which member variables are involved? Mm, no not really, not from a user graphical standpoint. That's where spos and proposed user component would come in. Unless your XTicks solve all these issues? Thanks. Tim. > > Greetings > flo > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Lmuse-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmuse-developer
