コード例 #1
0
        public BasicReverb()
        {
            InitializeComponent();
            Info.Text = AppResources.BasicsReverbInfo;

            foreach (string name in stringToPreset.Keys)
            {
                ReverbChoice.Items.Add(name);
            }

            reverb.Active = true;
            Global.Yse.ChannelMaster.AttachReverb();

            snare = Global.Yse.CreateSound();
            snare.Create("snare", null, true);
            snare.Play();
        }
コード例 #2
0
        public BasicChannels()
        {
            InitializeComponent();

            Info.Text = AppResources.BasicsChannelsInfo;

            ambient = Global.Yse.CreateSound();
            ambient.Create("flies", Global.Yse.ChannelAmbient, true);
            ambient.Play();

            music = Global.Yse.CreateSound();
            music.Create("my2chords", Global.Yse.ChannelMusic, true);
            music.Play();

            voice = Global.Yse.CreateSound();
            voice.Create("countdown", Global.Yse.ChannelVoice, true);
            voice.Play();
        }
コード例 #3
0
        public Basic3D()
        {
            InitializeComponent();

            Info.Text = AppResources.Basics3DInfo;

            listenerPos.Set(0f, 0f, 0f);
            Global.Yse.Listener.Pos(listenerPos / 10f);

            sound1.Create("contact", null, true);
            sound1Pos.Set(-100f, 30f, 0f);
            sound1.SetPos(sound1Pos / 10f);
            sound1.Play();

            sound2.Create("drone", null, true);
            sound2Pos.Set(100f, -10f, 0f);
            sound2.SetPos(sound2Pos / 10f);
            sound2.Play();
        }
コード例 #4
0
 private void ButtonPlay(object sender, EventArgs e)
 {
     sound.Play();
 }