public Bit8MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("8 bit") { this.entry = entry; this.manager = manager; this.Checked = true; this.value = 8; }
public AudioPanelMenu(AudioPanel parent) { this.parent = parent; this.manager = new AudioPanelMenuManager(this); InitChildren(); this.BackColor = Color.FromArgb(255, 35, 35, 35); this.Items.AddRange(new ToolStripItem[] { this.file, this.edit, this.encode, this.fourier, this.toggleFreq }); this.Location = new Point(0, 0); this.Name = "Menu"; this.Size = new Size(this.ClientSize.Width, AudioPanel.MENU_HEIGHT); this.TabIndex = 0; this.Text = "Menu"; this.Renderer = new ToolStripProfessionalRenderer(new MenuColoursTable()); IsMono = true; IsFrequencyShown = true; }
public khz8MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("8,000 Hz") { this.entry = entry; this.manager = manager; this.Checked = true; this.value = 8000; }
public FourierWorker(AudioPanel entry, GUI.MenuItem.Fourier.RunFourierMenuItem button, Structure.TypeKey.Windowing type, int channelIndex) { this.entry = entry; this.button = button; this.DoWork += new DoWorkEventHandler(RunDFTOnSelection); this.RunWorkerCompleted += new RunWorkerCompletedEventHandler(CallbackAsync); this.chIndex = channelIndex; this.type = type; this.threads = new Thread[4]; dftResults = new List <List <ComplexNumber> >(); dftResults.Add(new List <ComplexNumber>()); dftResults.Add(new List <ComplexNumber>()); dftResults.Add(new List <ComplexNumber>()); dftResults.Add(new List <ComplexNumber>()); if (channelIndex == 0) { ch = entry.TimeChannel1; } else if (channelIndex == 1) { ch = entry.TimeChannel2; } button.Enabled = false; }
public RectangularWinMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("None") { this.entry = entry; this.manager = manager; this.Checked = true; manager.WindowMode = Structure.TypeKey.Windowing.Rectangular; }
public ChartRenderWorker(AudioPanel entry, int channelIndex, bool initialLoad) { this.initialLoad = initialLoad; this.entry = entry; this.channelIndex = channelIndex; this.DoWork += new DoWorkEventHandler(NormalizeChartData); this.RunWorkerCompleted += new RunWorkerCompletedEventHandler(CallbackAsync); }
/// <summary> /// Creates an instance Audio control /// </summary> /// <param name="sensor">Instance of the KinectSensor object</param> /// <returns>Returns an instance of the control</returns> private static SwapChainPanel CreateAudio(KinectSensor sensor) { AudioPanel control = new AudioPanel(); control.AudioSource = sensor.AudioSource; return(control); }
public FilterWorker(AudioPanel entry, Abstract.AbsMenuItem <String> button, List <ComplexNumber> filter, int channelIndex) { this.entry = entry; this.button = button; this.filter = filter; this.DoWork += new DoWorkEventHandler(RunFilterOnSelection); this.RunWorkerCompleted += new RunWorkerCompletedEventHandler(CallbackAsync); this.chIndex = channelIndex; this.threads = new Thread[4]; idftResults = new List <List <int> >(); idftResults.Add(new List <int>()); idftResults.Add(new List <int>()); idftResults.Add(new List <int>()); idftResults.Add(new List <int>()); convolutionResults = new List <List <int> >(); convolutionResults.Add(new List <int>()); convolutionResults.Add(new List <int>()); convolutionResults.Add(new List <int>()); convolutionResults.Add(new List <int>()); button.Enabled = false; }
public ApplyFilter1MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Apply Filter Mono / L") { this.entry = entry; this.manager = manager; }
public RunFourierMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Run On Selection") { this.entry = entry; this.manager = manager; this.Running = false; }
public EditTimeDomain(AudioPanel panel) { this.panel = panel; }
public OpenMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Open") { this.entry = entry; this.manager = manager; }
public Bit24MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("24 bit") { this.entry = entry; this.manager = manager; this.value = 24; }
public PasteMenuItem(AudioPanel entry) : base("Paste") { this.entry = entry; }
public SineWinMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Sine") { this.entry = entry; this.manager = manager; }
public CloseMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Close") { this.entry = entry; this.manager = manager; }
public static void Initialize() { instance = ResourcesExtensions.InstantiateFromResources <AudioPanel>(nameof(AudioPanel), null); DontDestroyOnLoad(instance); }
public khz44MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("44,100 Hz") { this.entry = entry; this.manager = manager; this.value = 44100; }
public MonoMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Mono") { this.entry = entry; this.manager = manager; this.Checked = true; }
public CopyMenuItem(AudioPanel entry) : base("Copy") { this.entry = entry; }
public WelchWinMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Welch") { this.entry = entry; this.manager = manager; }
public Bit32MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("32 bit") { this.entry = entry; this.manager = manager; this.value = 32; }
public Bit16MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("16 bit") { this.entry = entry; this.manager = manager; this.value = 16; }
public CutMenuItem(AudioPanel entry) : base("Cut") { this.entry = entry; }
public StereoMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Stereo") { this.entry = entry; this.manager = manager; }
public khz11MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("11,025 Hz") { this.entry = entry; this.manager = manager; this.value = 11025; }
/// <summary> /// Начинает отрисовку записи /// </summary> /// <param name="repUser">Пользователь, у которого сделали репост (null, если нет)</param> private void BeginLayoutDesign(User repUser, bool rep) { if (Copied_Post != null) { repost.Children.Add(new ctrPost(Copied_Post, repUser, true)); } if (!rep) { BitmapImage bilikes = new BitmapImage(); bilikes.BeginInit(); var streamlike = File.OpenRead(Environment.CurrentDirectory + @"\like.png"); bilikes.StreamSource = streamlike; bilikes.EndInit(); likesImage.Source = bilikes; BitmapImage bireps = new BitmapImage(); bireps.BeginInit(); var streamrep = File.OpenRead(Environment.CurrentDirectory + @"\rep.png"); bireps.StreamSource = streamrep; bireps.EndInit(); repImage.Source = bireps; } else { foot.Height = 0; user_ico.Width = 40; user_ico.Height = 40; user_ico_circle.RadiusX = 20; user_ico_circle.RadiusY = 20; user_ico_circle.Rect = new Rect(0, 0, 40, 40); } if (Videos != null) { videos.Margin = new Thickness(5, 0, 5, 5); //-------------adding-videos-------------\\ foreach (Video vid in Videos) { VideoPanel.Add(new ctrVideo(vid)); } } if (Photos != null) { photos.Margin = new Thickness(5, 0, 5, 5); //------------adding-photos--------------\\ foreach (Photo phot in Photos) { PhotoPanel.Add(new ctrPhoto(phot)); } } if (Poll != null) { polls.Margin = new Thickness(5, 0, 5, 5); //----------------add-poll---------------\\ PollPanel.Add(new ctrPoll(Poll)); } if (Audios != null) { foreach (Media.Audio aud in Audios) { AudioPanel.Add(new Audio(aud)); } } if (Links != null) { links.Margin = new Thickness(5, 0, 5, 5); //----------------add-link---------------\\ links.Children.Add(new ctrLink(Links[0])); } }
public TriangularWinMenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("Bartlett") { this.entry = entry; this.manager = manager; }
public khz22MenuItem(AudioPanel entry, AudioPanelMenuManager manager) : base("22,050 Hz") { this.entry = entry; this.manager = manager; this.value = 22050; }
public DeleteMenuItem(AudioPanel entry) : base("Delete") { this.entry = entry; }