Autoseeked LFOs, concept of proof

dropping here too will be easier to find it later :slight_smile: , I’m quite a newbie in Renoise can’t see any drawback of it so sharing

seems the position of the reset of the LFOs can be controlled by Formula device using the following formula

function foo(A)
 return (A*100)*(LINEF%(NUMLINES/(A*100))/ NUMLINES);
end 

where A*100 is the number of the cycles per pattern which means the (custom)LFOs no needs triggering anymore to able to be in sync with the current pattern position (mainly can work as the automation editor)

device is here

<?xml version="1.0" encoding="UTF-8"?> <FilterDeviceClipboard doc_version="0"> <DeviceSlot type="DooferDevice"> <IsMaximized>true</IsMaximized> <IsSelected>true</IsSelected> <SelectedPresetName>mseg</SelectedPresetName> <SelectedPresetLibrary>User Library</SelectedPresetLibrary> <SelectedPresetIsModified>false</SelectedPresetIsModified> <IsActive> <Value>1.0</Value> <Visualization>Device only</Visualization> </IsActive> <Macro0> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 1</Name> </Macro0> <Macro1> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 2</Name> </Macro1> <Macro2> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 3</Name> </Macro2> <Macro3> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 4</Name> </Macro3> <Macro4> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 5</Name> </Macro4> <Macro5> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 6</Name> </Macro5> <Macro6> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 7</Name> </Macro6> <Macro7> <Value>50</Value> <Visualization>Device only</Visualization> <Name>Macro 8</Name> </Macro7> <NumActiveMacros>4</NumActiveMacros> <ShowDevices>true</ShowDevices> <DeviceChain> <SelectedPresetName>Init</SelectedPresetName> <SelectedPresetLibrary>Bundled Content</SelectedPresetLibrary> <SelectedPresetIsModified>true</SelectedPresetIsModified> <Devices> <FormulaMetaDevice type="FormulaMetaDevice"> <IsMaximized>true</IsMaximized> <IsSelected>true</IsSelected> <SelectedPresetName>Init</SelectedPresetName> <SelectedPresetLibrary>Bundled Content</SelectedPresetLibrary> <SelectedPresetIsModified>true</SelectedPresetIsModified> <IsActive> <Value>1.0</Value> <Visualization>Device only</Visualization> </IsActive> <FormulaParagraphs> <FormulaParagraph>foo(A)</FormulaParagraph> </FormulaParagraphs> <FunctionsParagraphs> <FunctionsParagraph/> <FunctionsParagraph>function foo(A)</FunctionsParagraph> <FunctionsParagraph> return (A*100)*(LINEF%(NUMLINES/(A*100))/ NUMLINES);</FunctionsParagraph> <FunctionsParagraph>end </FunctionsParagraph> </FunctionsParagraphs> <InputNameA>A</InputNameA> <InputNameB>B</InputNameB> <InputNameC>C</InputNameC> <EditorVisible>true</EditorVisible> <InputA> <Value>0.0400001779</Value> <Visualization>Device only</Visualization> </InputA> <InputB> <Value>0.0</Value> <Visualization>Device only</Visualization> </InputB> <InputC> <Value>0.0</Value> <Visualization>Device only</Visualization> </InputC> <DestTrack> <Value>-1</Value> <Visualization>Device only</Visualization> </DestTrack> <DestEffect> <Value>1.0</Value> <Visualization>Device only</Visualization> </DestEffect> <DestParameter> <Value>8</Value> <Visualization>Device only</Visualization> </DestParameter> </FormulaMetaDevice> <LfoDevice type="LfoDevice"> <IsMaximized>true</IsMaximized> <IsSelected>false</IsSelected> <SelectedPresetName>Init</SelectedPresetName> <SelectedPresetLibrary>Bundled Content</SelectedPresetLibrary> <SelectedPresetIsModified>true</SelectedPresetIsModified> <IsActive> <Value>1.0</Value> <Visualization>Device only</Visualization> </IsActive> <DestTrack> <Value>-1</Value> <Visualization>Device only</Visualization> </DestTrack> <DestEffect> <Value>-1</Value> <Visualization>Device only</Visualization> </DestEffect> <DestParameter> <Value>-1</Value> <Visualization>Device only</Visualization> </DestParameter> <Amplitude> <Value>0.5</Value> <Visualization>Device only</Visualization> </Amplitude> <Offset> <Value>0.0</Value> <Visualization>Device only</Visualization> </Offset> <Frequency> <Value>9.99999997e-07</Value> <Visualization>Device only</Visualization> </Frequency> <Type> <Value>4</Value> <Visualization>Device only</Visualization> </Type> <CustomEnvelope> <PlayMode>Lines</PlayMode> <Length>71</Length> <ValueQuantum>0.0</ValueQuantum> <Polarity>Unipolar</Polarity> <Points> <Point>0,0.0,0.0</Point> <Point>49,0.0918367356,0.0</Point> <Point>70,1.0,0.0</Point> </Points> </CustomEnvelope> <CustomEnvelopeOneShot>true</CustomEnvelopeOneShot> <UseAdjustedEnvelopeLength>false</UseAdjustedEnvelopeLength> </LfoDevice> </Devices> </DeviceChain> </DeviceSlot> </FilterDeviceClipboard>

have fun :slight_smile:

6 Likes