我在Commodore Basic 6502中打印一块点有问题.
这就是我所要做的:(这是一个子程序)
10 INPUT "Please enter a number:", X
20 DIM A$(X, X)
30 FOR I = 0 TO X
40 FOR J = 0 TO X
50 A$(I, J) = "."
60 NEXT
70 NEXT
80 PRINT A$
END
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我解决这个问题,因为当我将它粘贴到模拟器中时,键入END,并按Enter键字面上没有任何反应?
任何帮助深表感谢.我正在尝试建立一个单词搜索游戏.
我将我的应用程序提交到应用程序商店,但它只与iphone和ipod兼容.当我在iTunes中添加应用程序时连接它; s让我提交一个ipad屏幕截图.
应用程序必须具有通用性吗?我怎么能绕过这个?
我正在尝试将单声道音频单元输入路由到立体声输出。我已经深入研究了类似的问题,但是从来没有任何解决方案。
我首先使用AVAudioSessionCategoryPlayAndRecord类别,AVAudioSessionModeHearingAccessibility模式和AVAudioSessionCategoryOptionAllowBluetoothA2DP选项创建一个AVAudioSession 。将其设置为活动后,我开始配置输入/输出。
我的单声道格式:
AudioStreamBasicDescription monoFormat;
monoFormat.mSampleRate = 44100;
monoFormat.mFormatID = kAudioFormatLinearPCM;
monoFormat.mFormatFlags = kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
monoFormat.mBytesPerPacket = 4;
monoFormat.mFramesPerPacket = 1;
monoFormat.mBytesPerFrame = 4;
monoFormat.mChannelsPerFrame = 1; //mono
monoFormat.mBitsPerChannel = 32;
monoFormat.mReserved = 0;
Run Code Online (Sandbox Code Playgroud)
我的立体声格式:
AudioStreamBasicDescription audioFormat;
audioFormat.mSampleRate = 44100;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.mFormatFlags = kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
audioFormat.mBytesPerPacket = 8;
audioFormat.mFramesPerPacket = 1;
audioFormat.mBytesPerFrame = 8;
audioFormat.mChannelsPerFrame = 2;//stereo
audioFormat.mBitsPerChannel = …Run Code Online (Sandbox Code Playgroud) 我已经查看了与 FileReader 和 readAsArrayBuffer() 有关的所有类似问题,但没有任何运气。
我正在尝试使用 Web Audio API 读取本地 mp3 文件并使用 FileReader 对其进行处理,以便将其用于一些音乐可视化。
这就是我目前所拥有的:
var file = "../../audio/magic_coldplay.mp3";
var fileReader = new FileReader();
fileReader.onload = function (e) {
var fileResult = e.target.result;
visualizer.start(fileResult);
};
fileReader.onerror = function (e) {
debugger
};
fileReader.readAsArrayBuffer(file);
Run Code Online (Sandbox Code Playgroud)
我收到错误:“无法在‘FileReader’上执行‘readAsArrayBuffer’:参数 1 不是‘Blob’类型。”
所以我猜文件不是 Blob。我在网上看到的示例是用户上传自己的 mp3 文件。我如何才能使用本地 mp3 来实现此功能?
感谢您的任何指点!
如何将.m文件更改为.mm文件?
我收到错误:找不到cassert文件
我研究过,发现我需要将文件更改为.mm?
我怎样才能做到这一点?
我使用three.js和Web Audio API制作了一些音乐可视化,但在静音音频时遇到了问题。
我目前有一个带有分析器和源缓冲区的 AudioContext 对象。我正在添加一个增益节点来使音频静音,目前该节点无法正常工作。当我单击静音时,音频电平会发生变化(实际上变大了),所以我知道增益正在影响某些东西。
代码:
// AudioHelper class constructor
function AudioHelper() {
this.javascriptNode;
this.audioContext;
this.sourceBuffer;
this.analyser;
this.gainNode;
this.isMuted;
}
// Initialize context, analyzer etc
AudioHelper.prototype.setupAudioProcessing = function () {
// Get audio context
this.audioContext = new AudioContext();
this.isMuted = false;
// Create JS node
this.javascriptNode = this.audioContext.createScriptProcessor(2048, 1, 1);
this.javascriptNode.connect(this.audioContext.destination);
// Create Source buffer
this.sourceBuffer = this.audioContext.createBufferSource();
// Create analyser node
this.analyser = this.audioContext.createAnalyser();
this.analyser.smoothingTimeConstant = 0.3;
this.analyser.fftSize = 512;
this.gainNode = this.audioContext.createGain();
this.sourceBuffer.connect(this.analyser);
this.analyser.connect(this.javascriptNode);
this.sourceBuffer.connect(this.audioContext.destination);
this.sourceBuffer.connect(this.gainNode);
this.gainNode.connect(this.audioContext.destination); …Run Code Online (Sandbox Code Playgroud) 我试图用Commodore BASIC中的"."填充A $(X,X).
这就是我到目前为止所拥有的......但我不确定如何处理ASCII值等等.任何评论?
INPUT A$
FOR I = 0 TO X = DIM A$(X,X)
A$(".",x)
Run Code Online (Sandbox Code Playgroud)
我仍然对PET BASIC的API感到非常困惑......任何建议都会非常感激.
我在我的商品64基础项目中得到一个redim'd数组错误
然而,我不是在确定我的2D阵列的尺寸,也不会多次查看代码行!
错误在1140行
谁能帮我吗?
谢谢!
码:
10 print "start"
20 rem: go to line 1100 in order to fill board with "."s because this is
30 rem: the board's initialization
40 gosub 1100
50 rem: looping from i to x allows for horizontal aspect of board to be printed
60 rem: x represents the width dimension of board, in this case, 8
70 for i = 1 to x
80 rem: looping from j to x allows for vertical aspect …Run Code Online (Sandbox Code Playgroud) 我正在6502组装中打印到屏幕上
在我写的监视器中
STA $01, y to store the value at the pointer
Run Code Online (Sandbox Code Playgroud)
当我在此行按Enter键时,它说指令无效?
有任何想法吗...?