How to use the reactronica.config.instruments function in reactronica

To help you get started, we’ve selected a few reactronica examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github unkleho / reactronica / website / components / DAWTrackInfo / DAWTrackInfo.tsx View on Github external
//   setSelectedEffect(null);
  // }, [currentTrackId]);

  if (!currentTrack) {
    return null;
  }

  return (
    <div>
      <h2>Track</h2>
      <p>{currentTrack.id}</p>

      <h3>Instrument</h3>
      <select value="{currentTrack.instrumentType}"> {
          return {
            label: instrument.name,
            value: instrument.id,
          };
        })}
        onChange={(selectedOption) =&gt; {
          // const selectedOption = event.target[event.target.selectedIndex];
          // const type = selectedOption.getAttribute('data-type');

          dispatch({
            type: types.UPDATE_INSTRUMENT,
            instrumentType: selectedOption.value,
          });
        }}
      /&gt;
      {/* </select></div>

reactronica

React components for making music

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages