# Class names Synthesiser, SamplerVoice, etc. not found

**URL:** <https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452>\
**Category:** Getting Started\
**Created:** [December 31, 2021, 1:50pm UTC](https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452 "2021-12-31T13:50:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexo0O](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Alexo0O](https://forum.juce.com/u/Alexo0O)\
**Post date:** [December 31, 2021, 1:50pm UTC](https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452/1 "2021-12-31T13:50:55Z")

</div>

I am going through [tutorials](https://vaporsoft.net/creating-a-very-simple-sampler-audio-plugin-in-juce-5/) and trying to inherit a class from **Synthesiser**. But this name was not found. Out of sight are also **AudioFormatManager** , **SamplerVoice** , **File** , **ScopedPointer** and some methods. I do not understand, it seems that all the necessary namespaces and libraries are connected. In Projucer, “Plugin is a Synth” and “Plugin MIDI Input” are selected. What’s the matter?

```auto
// SimpleSynth.h

#pragma once
#include "../JuceLibraryCode/JuceHeader.h"

class SimpleSynth : public Synthesiser {
public:
	void setup();
private:
	AudioFormatManager audioFormatManager;
};

```

```auto

// SimpleSynth.cpp

#include "SimpleSynth.h"
#define MAX_VOICES 16

void SimpleSynth::setup() {
	// add voices to our sampler
	for (int i = 0; i < MAX_VOICES; i++) {
		addVoice(new SamplerVoice());
	}

	// set up our AudioFormatManager class as detailed in the API docs
	// we can now use WAV and AIFF files!
	audioFormatManager.registerBasicFormats();

	// now that we have our manager, lets read a simple file so we can pass it to our SamplerSound object.
	File* file = new File("1.wav");
	ScopedPointer<AudioFormatReader> reader = audioFormatManager.createReaderFor(*file);

	// allow our sound to be played on all notes
	BigInteger allNotes;
	allNotes.setRange(0, 128, true);

	// finally, add our sound
	addSound(new SamplerSound("default", *reader, allNotes, 60, 0, 10, 10.0));
}

```

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [December 31, 2021, 2:54pm UTC](https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452/2 "2021-12-31T14:54:45Z")

</div>

You probably need to add `juce::` prefixes to the symbols that cannot be found.

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [January 2, 2022, 10:24am UTC](https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452/3 "2022-01-02T10:24:38Z")

</div>

These tutorials were published on May 14th, 2017. At that time, the latest version of JUCE was 5.0.1. A lot of things have changed between that version and the current one, 6.1.4.

You can read about the breaking changes in the [`BREAKING-CHANGES.txt`](https://github.com/juce-framework/JUCE/blob/master/BREAKING-CHANGES.txt) file of JUCE.

---

<div class="post-metadata">

**Author:** ![Alexo0O](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Alexo0O](https://forum.juce.com/u/Alexo0O)\
**Post date:** [January 2, 2022, 11:35am UTC](https://forum.juce.com/t/class-names-synthesiser-samplervoice-etc-not-found/49452/4 "2022-01-02T11:35:03Z")

</div>

> [@reuk](#):
>
> `juce::` prefixes

Thanks! “_using namespace juce;_” fixes everything. I also figured out by trial and error that I should add “_#include "SimpleSynth.h_” to PluginProcessor. An interesting tutorial turns out, something like “find 10 errors”. Although it may really be a breaking changes in new versions.

However, it was still not possible to make the sound file play. Perhaps it’s the tutorial itself. I’m just trying to put together a minimal code to play a sample
