• Making a Rectangular Selection Tool

    3
    0 Votes
    3 Posts
    238 Views
    ustkU

    @ericchesek I call b.changed() in the mouseCB making it fire at each drag movement which is bad. The button callback should be called when mouse is released, or using a check to see if the button state changed so the CB doesn't trigger constantly...

    pnl.setMouseCallback(function(event) { if (event.clicked) this.data.startPos = {x:event.x, y:event.y}; if (event.drag) { this.data.isSelecting = true; this.data.currPos = {x:event.x, y:event.y}; this.data.p.clear(); this.data.p.startNewSubPath(this.data.startPos.x, this.data.startPos.y); this.data.p.lineTo(this.data.currPos.x, this.data.startPos.y); this.data.p.lineTo(this.data.currPos.x, this.data.currPos.y); this.data.p.lineTo(this.data.startPos.x, this.data.currPos.y); this.data.p.closeSubPath(); } if (this.data.isSelecting) updateButtons(event.mouseUp); if (event.mouseUp) this.data.isSelecting = false; this.repaint(); }); inline function updateButtons(isRelease) { for (b in btns) { // just an imaginary line in the middle of the button representing its position local buttonLineStart = [b.getGlobalPositionX(), b.getGlobalPositionY() + b.getHeight()/2]; local buttonLineEnd = [b.getGlobalPositionX() + b.getWidth(), b.getGlobalPositionY() + b.getHeight()/2]; local isIntersecting = this.data.p.getIntersection(buttonLineStart, buttonLineEnd, true); b.setValue(isIntersecting != false); if (isRelease) b.changed(); } }
  • Linking Ambisonics Code

    7
    0 Votes
    7 Posts
    310 Views
    clevername27C

    @DabDab

    This stuff is great—I've used it in MAX—

    Software Downloads | ZHdK.ch

    ZHdK is the Zurich University of the Arts

    favicon

    ZHdK (www.zhdk.ch)

    Here's a more general-purpose page from the same organization:

    Link Preview Image ICST Ambisonics Site

    This is a work in progress blog for the ambisonics activity at the Institute for Computer Music and Sound Technology (ICST)

    favicon

    ICST Ambisonics Site (ambisonics.ch)

    I've emailed the project maintainer to ask about a Faust implementation.

    Cheers,

    Bill

  • Engine.saveUserPreset(value) in any dir?

    6
    0 Votes
    6 Posts
    277 Views
    A

    @d-healey Thank you!

  • Making a fake stereo effect

    5
    0 Votes
    5 Posts
    499 Views
    d.healeyD

    @Soundavid Thanks, I'll give it a try

  • How to use the pitch mod node?

    Solved
    9
    0 Votes
    9 Posts
    655 Views
    d.healeyD

    @Christoph-Hart Thanks!

  • Can't read from JSON

    1
    0 Votes
    1 Posts
    96 Views
    No one has replied
  • Macro assignments SaveInPresets

    17
    0 Votes
    17 Posts
    731 Views
    Adam_GA

    @Christoph-Hart confirming macros fixed, thank you again

  • Object in JSON to Object in HISE

    6
    0 Votes
    6 Posts
    241 Views
    CasmatC

    @d-healey got it fixed! I fell victim to HISEing fatigue 😲

  • Array.concat()

    6
    0 Votes
    6 Posts
    198 Views
    CasmatC

    @d-healey @ulrik amazing haha!

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • getExpansionForInstallPackage()

    15
    0 Votes
    15 Posts
    343 Views
    CasmatC

    @d-healey haha! Found it! silly me:face_with_tongue: sorry for the hassle!

  • Run Script In Expansion

    42
    0 Votes
    42 Posts
    2k Views
    CasmatC

    @d-healey thanks so much!

  • popup items outside compiled plugin

    1
    0 Votes
    1 Posts
    88 Views
    No one has replied
  • Loading For SampleMaps

    5
    0 Votes
    5 Posts
    215 Views
    CasmatC

    @d-healey Ahh, i see! I tried finding it in the docs, but I can only find two functions on getting messages and progress on the preload. Where can I find more info on how to implement this or any example which utilizes this form of callback?

    Edit: Nice, just saw your edit! Will take a look at it!

  • Regex String Not Working

    4
    0 Votes
    4 Posts
    190 Views
    CasmatC

    @ulrik @Christoph-Hart Thanks! Both work amazing! The trim() function was exactly what I was looking for! I had thought it cut out all whitespace characters, not just the start and end! Thanks for helping!

  • Callback when preset saved??

    22
    0 Votes
    22 Posts
    2k Views
    d.healeyD

    Ah I see the problem. Do we want to sendNotification here?

  • samplemap / combobox script for 2 comboboxes

    21
    0 Votes
    21 Posts
    973 Views
    ulrikU

    @ulrik this is your combobox components

    const var CmbSampleMap12 = [Content.getComponent("ComboBox1"), Content.getComponent("ComboBox2")];
  • Finding Names in Objects

    11
    0 Votes
    11 Posts
    415 Views
    CasmatC

    @d-healey Ok, just retried it all from scratch and now it works. I guess my eyes were playing tricks on me the whole time haha. I had thought for some reason that when you push each of the objects inside an object into an array, the objects would be inside the array, but apparently, when the push function is used, the object's name is converted to a sting. Sorry for the major confusion!

    HiseSnippet 1001.3ocsV01aaaCDlzwZnVaYXsn66B5S1.YF18sMzfg4FGmAi033MmELfstNFoyVrlhTfhJoFCAX+c1+t8OX6njeQtwoHwqUeR2KO7d3Qd2wgZU.jlpzDZsSmk.D5m4LZlzD0Mhwkj9GRn65bFnS6FAASAM4fYIrzTHjPo678VWn0pRx+9mu6.lfICfUpHjyT7.3k7XtYk1gc9AtPbDKDNkGWx6mzoefR1UITYHc1woEIgELkMAFvrtUwgP+jdgbiROxvLPJgV8.U3rQQpKkE9eFOket.rBsIivEpP8QJQnkwVsjtQbQ3vEa6TBtJCWkD1oHI7Pmi4g7k5WkL9hbCdqPTNePqrN81YM50tL8ZUhdafRzRTpZAktuyn.MOwrxhkOepSeoAziYXZuLUJ7kT4uq5zUgdHMMiYSgiznvRD0eVqV648zVsZr+tttZXhmfMCzHV.jmb9af.i22549mt07egP3+bO2Z3+07Ofqj7.uiU5jH+miZrZq4ykoFcVLFKzU+A7IQFuStT3iFuZOKtALC+BXANuaOvghL7xW3cOhmBolBTdsuQb8dKKNQ.aD0i1JTO9VgxMGn+PVn08+WY1679bdr6Fozqh9Ve9bmSXK151y0kg+Cwo7sNy6d09ttX6FD4ELs2EIly3vkIJs8J+hRlIfoqJNQIQg59k7wuw940KnpWZKYNkMouAhSQr+5qvEdrRWeJLyiKudIUCaA06BrYRVZjEBtvVlcM6XAuAOexzLQ8FENrfLMSAjcbqa96cMJ07MJtrt+uI8aXwMNSFXvaYdJ4.kANQVOmOtW458tlFOdi1rIGsRH.8FMa6oqee.qKyhOGzHSYhLXoiXit06d5bycOK2bOn3rpjiJYeI2bRBHuoV9j4Gv1NsyYE5pIuO6Cl2mEBWjeI7P6TvRYbRN0KMmqC4m6eHyvVrf3ZiwKAzFtcqPODt.mCVzHulygP5TiJI2242tHz6cGB+aWF5N+QmYKE9qerSVJNsMEWNZk7KDD5W5f8tcyKzcwVMt4UYjK4glHLGS+bJgDA1ZJqzuSsymu1rGbpmJLSvLqOJzN+etA7Dds4O1YLxTtYV42G7Aa93skh22YH2DDsYNVYCbDO+9Xvw4upXWmdiGic.VQvpNG8KebdBA4mTYFtbxwLili2WbFjEOBeXU.fQWJAgsBiVwVKTH2xJay.i.YXtv+heyM11JSmar8BijXVfV85fhJH66VtWtFjSx7mrUy4XqrW6EELNNsZ1hDiOg50AA1s+WgkmaFyi1BLOdKv7js.yS2BLOaKv70aAlu48hw950WjYTwEkCnhg8xabQo8jL7lU9sPx+ALoELMI

    Thanks for your help!

  • SVG Image tracing

    10
    0 Votes
    10 Posts
    583 Views
    ustkU

    @TNTHM Nope, it's uses the SVG parser from Juce and applies a Base64 conversion.
    Then the object is reconverted to a path before drawing
    The number at the beginning is inherent to any Base64 conversion, it appears in snippets too.

  • AudioLoop Player/Granulator File Handling

    20
    0 Votes
    20 Posts
    855 Views
    Adam_GA

    @ustk actually @d-healey just helped me see my error :D i was calling the scriptfx as an effect as well as audiosampleprocessor. thank you good sirs for all the help

33

Online

1.7k

Users

11.7k

Topics

102.1k

Posts