Simple plugin for PaintDotNet using CSharp

Đã hoàn thành Đã đăng vào Mar 8, 2012 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

The task is to define a function in a C# file. The C# file should be buildable by the CodeLab plugin of Paint.Net. See here for more info on CodeLab and Paint.Net.

[url removed, login to view]

The mentioned function should take a "note" structure (see below), overtone count, a line width (in pixels), distance (or "gap") between the first two tones (in pixels), and Color (as [url removed, login to view]) understands it.

Here's a prototype for the desired draw function:

void Draw(Note note, int overtoneCount, int lineWidth, int firstGap, Color color);

enum Letter

{

C, D, E, F, G, A, B;

}

struct Note

{

Letter letter;

int octave;

int semitoneOffset; // like -1 would mean "flat" and "1" would mean "sharp"

}

Attached is a simple example of what I think it would probably look like.

Here's some more info on overtones, you should grab the formula from there. Make sure to translate the [url removed, login to view] into the right frequency (even given the semitone offset). Use the most typical tuning schema that exists for Western music.

[url removed, login to view]

Include a sample so that the function is actually exercised when the CodeLab filter is applied from [url removed, login to view] itself. Middle-C would be fine.

.NET Lập trình C#

ID dự án: #1491553

Về dự án

1 đề xuất Dự án từ xa Mar 9, 2012 đang mở

Được trao cho:

ferenckv

Please see PMB for details.

$100 USD trong 5 ngày
(13 Đánh Giá)
5.2