我正在尝试使用JavaScript来显示波形和音频文件,但我甚至不知道如何开始.我找到了音频数据API,但是我不熟悉大多数音频术语,并且不知道提供什么或如何操作它.我在JavaScript中找到了波形的例子,但它们太复杂了/我无法理解发生了什么.然后我的问题是:如何使用JavaScript在画布上创建歌曲的波形,以及它背后的过程究竟是什么?
我正在制作我的第一个Skype应用程序,它可以简单地向用户发送消息,但是当我调试时,我得到一个异常会导致我的应用程序崩溃 这是代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using skype_app;
using SKYPE4COMLib;
namespace skype_app
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
var oskype = new SKYPE4COMLib.Skype();
oskype.PlaceCall(textBox1.Text);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
var oskype = new SKYPE4COMLib.Skype();
oskype.SendMessage(textBox1.Text, …Run Code Online (Sandbox Code Playgroud) 我需要得到前一周的数字.例如,这是第38周,我需要第37周.如何最好地继续?
int currentWeekNumber= now.get(Calendar.WEEK_OF_YEAR);
int previousWeekNum = // How to get the previous week number??
System.out.println("currentWeekNum = " + currentWeekNumber);
System.out.println(" previousWeekNum = " + previousWeekNum);
Run Code Online (Sandbox Code Playgroud)