Skip to content

Commit

Permalink
xml
Browse files Browse the repository at this point in the history
  • Loading branch information
RickTaylor79 committed Dec 25, 2022
1 parent 6197ce0 commit 6cd7917
Show file tree
Hide file tree
Showing 8 changed files with 935 additions and 104 deletions.
Binary file modified oi grandad/Presets/oi grandad.hip
Binary file not shown.
35 changes: 32 additions & 3 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/ui.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Content.makeFrontInterface(865, 746);

Engine.loadFontAs("{PROJECT_FOLDER}Montserrat-Medium.ttf", "Montserrat");


//RR

// This button will control the behaviour:
Expand Down Expand Up @@ -361,7 +364,7 @@ laf.registerFunction("drawComboBox", function(g, obj)
g.setColour(obj.bgColour);
g.drawRoundedRectangle(obj.area, 3.0, 3.0);
g.setColour(Colours.withAlpha(obj.textColour, (obj.enabled && obj.active) ? 1.0 : 0.2));
g.setFont("Avenir", 16.0);
g.setFont("Montserrat", 16.0);

var a = obj.area;
g.drawAlignedText(obj.text, [a[0] + 0, a[0], a[2]-1, a[3]], "centred");
Expand All @@ -376,11 +379,11 @@ laf.registerFunction("drawPresetBrowserListItem", function(g, obj)
g.setColour(0x22FFFFFF);
g.fillRoundedRectangle(obj.area, 5.0);

g.setFont("Avenir", 16.0);
g.setFont("Montserrat", 16.0);
}

g.setColour(obj.textColour);
g.setFont("Avenir", 16.0);
g.setFont("Montserrat", 16.0);
g.drawAlignedText(obj.text, obj.area, "centred");
});

Expand Down Expand Up @@ -1155,6 +1158,32 @@ inline function onmasterdmixControl(component, value)
Content.getComponent("masterdmix").setControlCallback(onmasterdmixControl);


//xfade

const var XF = Content.getComponent("xfade");
const var xfade = Synth.getModulator("xfade");
const var xf1 = Synth.getEffect("xf1");
const var xf2 = Synth.getEffect("xf2");
const var xf3 = Synth.getEffect("xf3");
const var xf4 = Synth.getEffect("xf4");
const var XFcont = Content.getComponent("XFcont");


inline function onxfadeControl(component, value)
{
XFcont.showControl(1-value);
XFcont.showControl(value);

xf1.setBypassed(1 -value);
xf2.setBypassed(1 -value);
xf3.setBypassed(1 -value);
xf4.setBypassed(1 -value);
xfade.setBypassed(1 -value);
};

Content.getComponent("xfade").setControlCallback(onxfadeControl);





Expand Down
13 changes: 13 additions & 0 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/xf1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function prepareToPlay(sampleRate, blockSize)
{

}
function processBlock(channels)
{

}
function onControl(number, value)
{

}

13 changes: 13 additions & 0 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/xf2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function prepareToPlay(sampleRate, blockSize)
{

}
function processBlock(channels)
{

}
function onControl(number, value)
{

}

13 changes: 13 additions & 0 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/xf3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function prepareToPlay(sampleRate, blockSize)
{

}
function processBlock(channels)
{

}
function onControl(number, value)
{

}

13 changes: 13 additions & 0 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/xf4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function prepareToPlay(sampleRate, blockSize)
{

}
function processBlock(channels)
{

}
function onControl(number, value)
{

}

25 changes: 25 additions & 0 deletions oi grandad/Scripts/ScriptProcessors/oigrandad/xfade.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
function prepareToPlay(sampleRate, samplesPerBlock)
{

}
function processBlock(buffer)
{

}
function onNoteOn()
{

}
function onNoteOff()
{

}
function onController()
{

}
function onControl(number, value)
{

}

927 changes: 826 additions & 101 deletions oi grandad/XmlPresetBackups/oi grandad.xml

Large diffs are not rendered by default.

0 comments on commit 6cd7917

Please sign in to comment.