Browse Source

typo

master
heck 4 years ago
parent
commit
b403b38e48
  1. 4
      examples/ext/synth_shed/tests/test_synth_shed.py
  2. 4
      examples/lib/lib_synth_shed/synth_shed.c
  3. 4
      examples/lib/lib_synth_shed/synth_shed.h

4
examples/ext/synth_shed/tests/test_synth_shed.py

@ -18,14 +18,14 @@ def test_Fds() :
print("brand:", s.brand)
print("model:", s.model)
print("osc_count", s.osc_count)
print("technolgy:",s.technolgy)
print("technology:",s.technology)
print("filter.tech:",s.filter.technology)
print("filter.type:",s.filter.type)
assert s.brand == brand
assert s.model == model
assert s.osc_count == osc_count
assert s.technolgy == synth_shed._tech.ANALOG
assert s.technology == synth_shed._tech.ANALOG
assert s.filter.technology == synth_shed._tech.ANALOG
assert s.filter.type == synth_shed._filtertype.LPF

4
examples/lib/lib_synth_shed/synth_shed.c

@ -16,7 +16,7 @@ synth_t* synth_create(const char* brand, const char* model, int osc_count) {
new_synth->brand = brand;
new_synth->model = model;
new_synth->osc_count = osc_count;
new_synth->technolgy = ANALOG;
new_synth->technology = ANALOG;
new_synth->filter.technology = ANALOG;
new_synth->filter.type = LPF;
}
@ -78,7 +78,7 @@ const char* play_synth(synth_t* synth) {
char osc[4];
sprintf(osc, "%i", synth->osc_count);
const char* tech = tech_to_string(&synth->technolgy);
const char* tech = tech_to_string(&synth->technology);
const char* filt_tech = tech_to_string(&synth->filter.technology);
const char* filt_type = filtertype_to_string(&synth->filter.type);

4
examples/lib/lib_synth_shed/synth_shed.h

@ -34,8 +34,8 @@ struct _synth {
const char* brand;
const char* model;
int osc_count;
tech_t technolgy;
filter_t filter;
tech_t technology;
filter_t filter[3];
};

Loading…
Cancel
Save