Jump to content


Photo

Envelopes: How does compatibility works from old to new ?


  • Please log in to reply
3 replies to this topic

#1 Zenon

Zenon

    Advanced Member

  • Normal Members
  • PipPipPip
  • 103 posts
  • Gender:Male
  • Location:Rome, Italy

Posted 13 April 2014 - 23:29

I'm currently working for the making the new version of Xrn2xmod compatible with Renoise 3.0

I have noticed that the relation between old and new values is somewhat 1066.5% :

Indeed, comparing any old envelope field value (sustain, decay, a node point) I got these values:

[CompatibilityMode]

<EnvelopeSustainPos>24</EnvelopeSustainPos>
<EnvelopeLoopStart>72</EnvelopeLoopStart>
<EnvelopeLoopEnd>120</EnvelopeLoopEnd>
...
<EnvelopeNodes>
  <PlayMode>Linear</PlayMode>
  <Length>200</Length>
  <ValueQuantum>0.0</ValueQuantum>
  <Polarity>Bipolar</Polarity>
  <Points>
	<Point>0,0.5</Point>
	<Point>48,1.0</Point>
	<Point>96,0.0</Point>
	<Point>199,0.391129047</Point>
  </Points>
</EnvelopeNodes>

[ModulationMode]

<SustainPos>128</SustainPos>
<LoopStart>384</LoopStart>
<LoopEnd>768</LoopEnd>
...
<Nodes>
  <PlayMode>Linear</PlayMode>
  <Length>1066</Length>
  <ValueQuantum>0.0</ValueQuantum>
  <Polarity>Unipolar</Polarity>
  <Points>
	<Point>0,1.0</Point>
	<Point>128,1.0</Point>
	<Point>256,0.400000006</Point>
	<Point>512,0.400000006</Point>
	<Point>1024,0.0</Point>
  </Points>
</Nodes>

Can you confirm that the delta value between the old and new format is 10.665 ?

Also, I have noticed a strange thing when doing the update of an old envelope:

The release value pass from 100 to 19. Is this a bug ?
lookin for xrns to mod / xm converter ?
Xrns2XMOD

#2 vV

vV

    God's or Borg's Chief and Ruler of All Species

  • Moderator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 16855 posts
  • Gender:Male
  • Location:Netherlands

Posted 14 April 2014 - 07:50

Indeed, comparing any old envelope field value (sustain, decay, a node point) I got these values:


Those are not point values but positioning values on the time scale and the time-base model has been synchronized to beats rather than ticks in the old system, this indeed means that positioning is scaled differently when converted.
Vv....


cpu Intel Core i7-4820K @3.70GHz
chipset Intel X79 chipset
mem 32 Gb 2400Mhz
os Win 7 64-bit SP1, DirectX 11
audio ESI ESP1010e - > Driver rev:2.0.6.0
video nVidia Geforce GTX780 - > Driver rev:335.23


Renoise Official Manual

#3 Zenon

Zenon

    Advanced Member

  • Normal Members
  • PipPipPip
  • 103 posts
  • Gender:Male
  • Location:Rome, Italy

Posted 14 April 2014 - 08:36

Ok Vv I see, then my question is:
how the conversion works from the old to new system?
it's something complicated (meant this is not a good place to discuss about)
or works in the way I wrote above?
also: is the release value converted wrong?
lookin for xrns to mod / xm converter ?
Xrns2XMOD

#4 vV

vV

    God's or Borg's Chief and Ruler of All Species

  • Moderator
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 16855 posts
  • Gender:Male
  • Location:Netherlands

Posted 14 April 2014 - 09:46

The old resolution was ticks. Now it is milliseconds. But if you upgrade, the new values will be represented in beats.
1 beat is 256 ticks.
The conversion is done roughly based on the time the current envelope takes. If you change the amount of ticks, the envelopes are also in compatibility mode being automatically transitioned to match the timing as it was

The release indeed seems to be fixed to an average 8 tick conversion which seems incorrect in cases the speed is different from 8 ticks but i'll rather have one of the devs have a look at/explain that.
(also changing the tick amount in the playback and compatibility settings affects the release in compatibility mode which it shouldn't)
Vv....


cpu Intel Core i7-4820K @3.70GHz
chipset Intel X79 chipset
mem 32 Gb 2400Mhz
os Win 7 64-bit SP1, DirectX 11
audio ESI ESP1010e - > Driver rev:2.0.6.0
video nVidia Geforce GTX780 - > Driver rev:335.23


Renoise Official Manual