HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Chazrox
    • Profile
    • Following 5
    • Followers 2
    • Topics 100
    • Posts 830
    • Groups 0

    Chazrox

    @Chazrox

    Music Producer based in Los Angeles. Learning HISE everyday.

    223
    Reputation
    84
    Profile views
    830
    Posts
    2
    Followers
    5
    Following
    Joined
    Last Online
    Age 41
    Location Los Angeles, CA.

    Chazrox Unfollow Follow

    Best posts made by Chazrox

    • RE: More Positive Posts?

      Good Morning! I agree. Here's something I've been doing. Aside from working on my personal plugins, I've been wanting to show my appreciation to the community by designing a set of 3d assets / filmstrips that people can use on their projects.

      There are quite a few regulars in here that always get me going when im stuck. I Love it here!

      This is just a mockup of one of the kits im working on. All of these assets should be available for anyone to use soon. Dont quote me on "soon". Im sure everyone in here has 10 things going at once lol.

      Screenshot 2025-02-02 at 9.14.44 AM.png

      Screenshot 2025-02-02 at 6.44.25 AM.png

      Im still messing around with the faceplate so the actual release might not be exact.

      Much Love to the community!
      Special Thanks to @Christoph-Hart
      and honorable mention to Mr. @d-healey who got me going on all this in the first place!
      Im soaking it all in!

      posted in General Questions
      ChazroxC
      Chazrox
    • FREE DESIGN || Upgrade Your Keyboard!

      Freebie for the community.
      Screenshot 2025-05-11 at 2.08.43 AM.png

      Here's the script:

      namespace LafRealKeyboard
      {
      	const var FloatingTile1 = Content.getComponent("FloatingTile1");
      	const var Laf_RealKeys = Content.createLocalLookAndFeel();
      	
      	//! DRAW WHITE NOTE
      	Laf_RealKeys.registerFunction("drawWhiteNote", function(g,obj)
      	{
      		var a = obj.area;
      		var WhiteUp = Laf_RealKeys.loadImage("{PROJECT_FOLDER}WHITE KEY - UP 11.png", "WHITE KEY - UP 11.png");
      		var WhiteDown = Laf_RealKeys.loadImage("{PROJECT_FOLDER}WHITE KEY - DOWN 11.png", "WHITE KEY - DOWN 11.png");
      		
      		if (obj.down)
      		{
      			g.drawImage("WHITE KEY - DOWN 11.png", a, 0, 0);
      			g.setColour(Colours.red);			
      		}
      		if (!obj.down)
      		{
      			g.drawImage("WHITE KEY - UP 11.png", a, 0, 0);	
      		}	
      	});
      	Content.getComponent("FloatingTile1").setLocalLookAndFeel(Laf_RealKeys);
      	
      	//! DRAW BLACK NOTE
      	Laf_RealKeys.registerFunction("drawBlackNote", function(g,obj)
      	{
      		var a = obj.area;
      		var BlackUp = Laf_RealKeys.loadImage("{PROJECT_FOLDER}BLACK KEY - UP 11.png", "BLACK KEY - UP 11.png");
      		var BlackDown = Laf_RealKeys.loadImage("{PROJECT_FOLDER}BLACK KEY - DOWN 11.png", "BLACK KEY - DOWN 11.png");
      		
      		if (!obj.down)
      		{
      			g.drawImage("BLACK KEY - UP 11.png", a ,0, 0);	
      		}
      		if (obj.down)
      		{	
      			g.drawImage("BLACK KEY - DOWN 11.png", [a[0], a[1], a[2], a[3] + 10] ,0, 0);
      		}
      	});
      	Content.getComponent("FloatingTile1").setLocalLookAndFeel(Laf_RealKeys);
      }
      

      Download these images and add them to your projects 'Images' folder. F5. Enjoy.
      FILES---> CUSTOM KEYBOARD IMAGES

      posted in General Questions
      ChazroxC
      Chazrox
    • CUSTOM TABLE PRESETS Sub-Menu Template || Ready-to-run!

      I've been struggling with this one for a while and finally got a solid working script! I just wanted to share with the community an easy working template.
      Table Preset Browser Working.gif

      Functions:
      Save
      Delete
      Rename
      Back
      Next
      Random
      Combobox presets with custom name save

      Hope this helps someone down the line!

      const var PresetList = Content.getComponent("PresetList"); 
      const var PresetNameToSave = Content.getComponent("PresetNameToSave");    
      const var SaveOk = Content.getComponent("SaveOk");
      const var TableEnvelope1Pro = Synth.getTableProcessor("Table Envelope1");
      
      // File path for saving/loading
      const var presetFile = FileSystem.getFolder(FileSystem.Desktop).getChildFile("myFile.json");
      
      // Declare object to hold presets
      var AttackTablePresets = {};
      var lastRandomPresetName = "";
      
      //------------------------ LOAD existing presets on init ------------------------//
      
      if (presetFile.isFile())
      {
      	AttackTablePresets = presetFile.loadAsObject();
      
      	// Manually extract keys
      	var keyList = [];
      	for (k in AttackTablePresets)
      		keyList.push(k);
      
      	PresetList.set("items", keyList.join("\n"));
      }
      
      
      //------------------------ SAVE PRESET ------------------------//
      
      inline function onSaveOkControl(component, value)
      {		
      	if (!value)
      		return;
      
      	local presetNameNOW = PresetNameToSave.get("text").trim();
      	if (presetNameNOW == "")
      		return;
      
      	local tableData0 = TableEnvelope1Pro.exportAsBase64(0);
      
      	// Add to object
      	AttackTablePresets[presetNameNOW] = tableData0;
      
      	// Save to file
      	presetFile.writeObject(AttackTablePresets);
      
      	// Update ComboBox
      	local keyList = [];
      	for (k in AttackTablePresets)
      		keyList.push(k);
      
      	PresetList.set("items", keyList.join("\n"));
      	PresetList.setValue(keyList.indexOf(presetNameNOW) + 1);
      	PresetNameToSave.set("text", "(Enter Preset Name)");
      };
      
      SaveOk.setControlCallback(onSaveOkControl);
      
      //--------------------------COMBOBOX RESTORE TABLE CONTROLS --------------------------//
      inline function onPresetListControl(component, value)
      {
          if (value <= 0)
              return;
      
          // Get the selected preset name from the ComboBox using the selected index
          local selectedPresetName = PresetList.getItemText();
      
          // Look up the table data in the preset object
          local presetData = AttackTablePresets[selectedPresetName];
      
          // Restore the table if data exists
          if (presetData)
              TableEnvelope1Pro.restoreFromBase64(0, presetData);
      };
      PresetList.setControlCallback(onPresetListControl);
      
      // ---------------------------DELETE CURRENT PRESET CONTROLS -------------------------------//
      const var DeletePresetButton = Content.getComponent("DeletePresetButton");
      
      inline function onDeletePresetButtonControl(component, value)
      {
          if (!value)
              return;
      
          local selectedIndex = PresetList.getValue();
          if (selectedIndex <= 0)
              return;
      
          // Get preset name
          reg presetNameToDelete = PresetList.getItemText();
      
          if (!isDefined(AttackTablePresets[presetNameToDelete]))
              return;
      
          Engine.showYesNoWindow("Delete Preset",
              "Are you sure you want to delete \"" + presetNameToDelete + "\"?",
              function(result) // nested callback
              {
                  if (result)  // IF 'YES' 
                  {
                      var newPresets = {};
                      for (k in AttackTablePresets)
                      {
                          if (k != presetNameToDelete) 
                              newPresets[k] = AttackTablePresets[k];
                      }
      
                      AttackTablePresets = newPresets;
      
                      presetFile.writeObject(AttackTablePresets);
      
                      var keyList = [];
                      for (k in AttackTablePresets)
                          keyList.push(k);
      
                      PresetList.set("items", keyList.join("\n"));
                      PresetList.setValue(PresetList.getValue() - 1); // Clear selection
                  }
              });
      };
      
      DeletePresetButton.setControlCallback(onDeletePresetButtonControl);
      
      //------------------------------------RANDOMIZER BUTTON CONTROLS ------------------------//
      const var RandomizePresetButton = Content.getComponent("RandomizePresetButton");
      
      inline function onRandomizePresetButtonControl(component, value)
      {
      	if (!value)
      		return;
      
      	// Collect preset names
      	local presetNames = [];
      	for (k in AttackTablePresets)
      		presetNames.push(k);
      
      	local total = presetNames.length;
      	if (total == 0)
      		return;
      
      	local randomPresetName = "";
      	local tries = 10; // safety cap to avoid infinite loop
      
      	while (tries > 0)
      	{
      		local i = Math.floor(Math.random() * total);
      		randomPresetName = presetNames[i];
      
      		// Stop if the new name is different, or only one preset exists
      		if (randomPresetName != lastRandomPresetName || total == 1)
      			break;
      
      		tries--;
      	}
      
      	// Find index of selected name in ComboBox
      	local comboIndex = 0;
      	for (i = 0; i < presetNames.length; i++)
      	{
      		if (presetNames[i] == randomPresetName)
      		{
      			comboIndex = i + 1;
      			break;
      		}
      	}
      
      	if (comboIndex > 0)
      		PresetList.setValue(comboIndex);
      
      	// Load the new preset
      	local presetData = AttackTablePresets[randomPresetName];
      	if (presetData)
      		TableEnvelope1Pro.restoreFromBase64(0, presetData);
      
      	// Store the name to avoid repetition next time
      	lastRandomPresetName = randomPresetName;
      };
      
      RandomizePresetButton.setControlCallback(onRandomizePresetButtonControl);
      
      
      //--------------------------BACK BUTTON CONTROLS -------------
      const var BackPresetButton = Content.getComponent("BackPresetButton");
      
      inline function onBackPresetButtonControl(component, value)
      {
      	if (!value)
      		return;
      
      	local currentIndex = PresetList.getValue();
      	local totalItems = 0;
      
      	for (k in AttackTablePresets)
      		totalItems++;
      
      	// Wrap to last if we're at the first
      	if (currentIndex <= 1)
      		currentIndex = totalItems + 1;
      
      	local newIndex = currentIndex - 1;
      	PresetList.setValue(newIndex);
      
      	local presetName = PresetList.getItemText();
      	local presetData = AttackTablePresets[presetName];
      
      	if (presetData)
      		TableEnvelope1Pro.restoreFromBase64(0, presetData);
      };
      BackPresetButton.setControlCallback(onBackPresetButtonControl);
      
      
      //-------------------------------NEXT BUTTON CONTROLS ---------------
      
      const var NextPresetButton = Content.getComponent("NextPresetButton");
      
      inline function onNextPresetButtonControl(component, value)
      {
      	if (!value)
      		return;
      
      	local currentIndex = PresetList.getValue();
      	local totalItems = 0;
      
      	for (k in AttackTablePresets)
      		totalItems++;
      
      	// Wrap to first if we're at the last
      	if (currentIndex >= totalItems)
      		currentIndex = 0;
      
      	local newIndex = currentIndex + 1;
      	PresetList.setValue(newIndex);
      
      	local presetName = PresetList.getItemText();
      	local presetData = AttackTablePresets[presetName];
      
      	if (presetData)
      		TableEnvelope1Pro.restoreFromBase64(0, presetData);
      };
      NextPresetButton.setControlCallback(onNextPresetButtonControl);
      
      // -------------------------RENAME PRESET BUTTON CONTROLS-----------------------
      const var RenamePresetButton = Content.getComponent("RenamePresetButton");
      
      inline function onRenamePresetButtonControl(component, value)
      {
      	if (!value)
      		return;
      
      	local selectedIndex = PresetList.getValue();
      	if (selectedIndex <= 0)
      		return;
      
      	local oldName = PresetList.getItemText();
      	local newName = PresetNameToSave.get("text").trim();
      
      	if (newName == "" || newName == oldName)
      		return;
      
      	// If new name already exists, do nothing (or optionally warn)
      	if (isDefined(AttackTablePresets[newName]))
      	{
      		Console.print("A preset with that name already exists.");
      		return;
      	}
      
      	// Copy data to new name
      	AttackTablePresets[newName] = AttackTablePresets[oldName];
      
      	// Rebuild the object without the old key
      	local newPresets = {};
      	for (k in AttackTablePresets)
      	{
      		if (k != oldName)
      			newPresets[k] = AttackTablePresets[k];
      	}
      
      	AttackTablePresets = newPresets;
      
      	// Save updated object to file
      	presetFile.writeObject(AttackTablePresets);
      
      	// Update ComboBox
      	local keyList = [];
      	for (k in AttackTablePresets)
      		keyList.push(k);
      
      	PresetList.set("items", keyList.join("\n"));
      
      	// Select the renamed preset
      	PresetList.setValue(keyList.indexOf(newName) + 1);
      };
      RenamePresetButton.setControlCallback(onRenamePresetButtonControl);
      
      

      I had the help of @d-healey and @Lindon with making this and a few extra helps from gpt.

      Bless! 🙏

      • ROX

      PS> if anybody wants to make improvements and toss it back, have at it! Together we can make the ULtimate Table preset menu. haha.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Software for Animation Sprites....

      @rglides SAMPLE:

      *HISE Logo for fun. Dont sue me. lol

      Screenshot 2025-02-02 at 4.42.00 AM.png

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: Software for Animation Sprites....

      Ok just sharing my first 3d Knob that I made! This is gonna be fun.

      @lalalandsynth how do you get your shadows to show up in the animation? I can seem to get mine to show up on the transparent areas.

      ezgif-4668e059bd8e4.gif

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: Guitar Pedal GUI Kit in the making.

      Screenshot 2025-02-11 at 12.11.02 AM.png

      posted in Presets / Scripts / Ideas
      ChazroxC
      Chazrox
    • RE: Help. Project wont open. Instant crash.

      @Chazrox man I really figured this one out on my own and im proud of myself. lol

      I started digging around and I opened the corresponding .xml file for the project and noticed in one of the lines that it was pointing to a default preset that no longer existed in the expected folder it was supposed to be in. Turns out I DID do something, which was move that folder that the preset was supposed to be in. I deleted that line and everything opened up as normal. fweeww! Sweats! haha.

      this thing...

      Screenshot 2025-03-08 at 9.55.41 AM.png

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Sliders not responding to "Consumed" MIDI CCs

      @CyberGen I had some wierd bug regarding midi and I found on the forum somewhere that if your buffer settings in your DAW are 1024 or higher it would break the midi in some way...I thought that it sounded bogus until I tried it and it fixed my problem. Just throwing that out there because it seems your out in the deep like I was so it wont hurt to try!

      posted in Scripting
      ChazroxC
      Chazrox
    • GRID HELPER || Free Script

      If you're like me and just need an extra visual helper, you might find this useful.

      Screenshot 2025-05-31 at 4.19.37 PM.png

      Drop a panel in your project and name it "Grid1".

      namespace GridHelper
      {
      	const var Grid1 = Content.getComponent("Grid1");
      	
      	Grid1.setPaintRoutine(function(g) 
      	{
      		drawPandelGrid();
      	});
      	
      	inline function drawPandelGrid()
      	{
      		local a = this.getLocalBounds(0);
      		
      		// Size Controls
      		local NumBarsX = 10; // Number of Vertical Lines
      		local NumBarsY = 10; // Number of Horizontal Lines
      		local BarHeight = 1; // Horizontal Bar Size
      		local BarWidth = 1; // Vertical Bar Size
      		
      		// Colour Controls
      		local BarColour = Colours.withAlpha(Colours.black, 0.5); // Bar Colour
      		local BackgroundColour = Colours.withAlpha(Colours.pink, 0.5); // Optional Background Colour
      		
      		// Spacer Logic
      		local spacerY = a[3]/NumBarsY; // Horizontal Line Spacing
      		local spacerX = a[2]/NumBarsX; // Vertical Line Spacing
      		
      		// Paint Background		
      		g.fillAll(BackgroundColour); // Optional Background Colour
      		g.setFont("ArialBOLD", 12);
      		g.drawAlignedText("GRIDHELPER1.0", [5,5,100,5], "left");
      	
      		// Paint Lines
      		for (i=0;i<=NumBarsX;i++) // Vertical Lines
      		{					
      			local x = i * spacerX - (BarWidth/2); // Center Line ON grid
      			
      			g.setColour(BarColour);
      			g.fillRect([x,0,BarWidth,a[3]]);	
      		}
      		for (i=0;i<=NumBarsY;i++) // Horizontal Lines
      		{			
      			local y = i * spacerY - (BarHeight/2); // Center Line ON grid
      					
      			g.setColour(BarColour);
      			g.fillRect([0,y,a[2],BarHeight]);
      		}
      	}
      }
      

      Its a snippet from @Morphoice that I modified to have both horizontal and vertical lines, made it modular with the all the controls variables and customizable so you can set a different amount of x or y bars/lines. Comes in handy sometimes when I just want to visualize a certain part of my plugin and make sure its equally spaced to my desired paramaters.

      (idk if something like this exists already but I thought it was good excercise regardless). Bless! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Player - I'm going crazy

      @clevername27 agreed. Just resubscribed for my second month and the amount that i've learned so far is insane.

      posted in ScriptNode
      ChazroxC
      Chazrox

    Latest posts made by Chazrox

    • RE: Roadmap to HISE 5

      @d-healey sweet. Thanks. 🤛

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: Roadmap to HISE 5

      I might have missed it....was there a date set for the next meet-up?

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: Feature Request: Crossfade in Audio Loop Player

      @paper_lung what are you trying to achieve?

      posted in Feature Requests
      ChazroxC
      Chazrox
    • RE: GUi Resize choosing from a combo box

      @Oriah-Beats Screenshot 2025-07-16 at 6.18.14 AM.png

      posted in General Questions
      ChazroxC
      Chazrox
    • RE: XY Pad, controlling X Y Knobs, controlling other knobs.

      @Lurch Its too crazy in there. All your timer objects, nam models, fonts/files missing. I been chasing errors for 10 mins. You gotta make a simpler example without all that stuff. Everything I touch triggers an animation and I get flooded with errors.

      Take out everything except the knobs so none of the errors get in the way. Its a little easier to try to debug that way.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: XY Pad, controlling X Y Knobs, controlling other knobs.

      @Lurch Im not sure if those are all of your declarations but you also have to declare the modules you want to control (*when not using the property editor)

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: XY Pad, controlling X Y Knobs, controlling other knobs.

      @Lurch Do you have anything connected via the 'property editor'? If so, your callbacks wont exec for those components.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Deleting .json Items || = undefined??

      @d-healey If its writing the new data, and not deleting the old one...where are these numbers coming from?

      d888f7f6-a101-4c0f-b840-a849d08ade97-image.png

      they look like items i've added and removed before but if they arent showing up in the .json file, where are they?

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Deleting .json Items || = undefined??

      @d-healey darn, so even if he did it would require me to update which Im afraid to do. Any other suggestions?

      posted in Scripting
      ChazroxC
      Chazrox
    • Deleting .json Items || = undefined??

      How do we delete an item from .json? My 'Rename Preset' isnt replacing the selected preset for some reason, its adding a new item. Im removing the item before writing the object back to file so im assuming the deleting isnt happening.

      		//-------Delete the Old Entry---------------------------		
      		AttackTablePresets[oldName] = undefined;
      

      This is the full 'Rename' button script as of now...

      // -------------------------RENAME PRESET BUTTON CONTROLS-----------------------		
      	inline function onRenamePresetButtonControl(component, value)
      	{
      		if (!value)
      			return;
      		//-------------------------------------------------------------------			
      		local oldName = PresetList.getItemText(); // Name in combobox
      		local newName = PresetNameToSave.get("text").trim(); // Name in text field
      
      		//-------------------------------------------------------------------
      		if (newName == "" || newName == oldName)
      			return;
      
      		//-------------------------------------------------------------------		
      		// If new name already exists, do nothing or show warning. 
      		if (isDefined(AttackTablePresets[newName]))
      		{
      			Console.print("A preset with that name already exists.");
      			return;
      		}
      
      		//-------------------------------------------------------------------	
      		// Duplicate Data
      		AttackTablePresets[newName] = AttackTablePresets[oldName]; // Copy data FROM oldName TO newName
      
      		//-------------------------------------------------------------------		
      		// Rebuild the object without the old key
      		local newPresets = {}; // Clear the array
      		for (k in AttackTablePresets)
      		{
      			if (k != oldName)
      				newPresets[k] = AttackTablePresets[k]; // Array, newPresets now without oldName
      		}
      
      		//-------------------------------------------------------------------
      		AttackTablePresets = newPresets.clone(); // Hand back to main array AttackTablePresets		
      
      		//-------------------------------------------------------------------	
      		// Get current values	
      		local tableData0 = TableEnvelope1Pro.exportAsBase64(0); // ATTACK TABLE
      		local attackKnob = knbAttack.getValue(); // ATTACK TIME KNOB
      
      		AttackTablePresets[newName] = [
      			TableEnvelope1Pro.exportAsBase64(0),
      			knbAttack.getValue()
      		];				
      
      		//-------Delete the Old Entry---------------------------		
      		AttackTablePresets[oldName] = undefined;	
      		//-------------------------------------------------------------------		
      		// Write object to file
      		presetFile1.writeObject(AttackTablePresets);
      		//-------------------------------------------------------			
      		// Update ComboBox
      		local keyList = [];
      
      		for (k in AttackTablePresets)
      			keyList.push(k);		
      		//-------------------------------------------------------------------
      		// Repopulate combobox items and set new value
      		PresetList.set("items", keyList.join("\n"));
      		PresetList.setValue(keyList.indexOf(newName) +1);
      		//-------------------------------------------------------------------		
      		PresetNameToSave.set("text", "");
      	};
      	RenamePresetButton.setControlCallback(onRenamePresetButtonControl);
      

      .json in xcode after trying to rename "1" to "11"
      Screenshot 2025-07-15 at 3.31.54 AM.png

      then my preset combobox has some rogue values. The .json doesnt show those values so idk.
      Screenshot 2025-07-15 at 3.46.53 AM.png

      posted in Scripting
      ChazroxC
      Chazrox